Advertisement
Guest User

Untitled

a guest
May 12th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. if (fmt_ctx->nb_streams > nb_streams) {
  2. #define REALLOCZ_ARRAY_STREAM (ptr, cur_n, new_n) \
  3. { \
  4. ret = av_reallocp_array(&(ptr), (new_n), sizeof(*(ptr))); \
  5. if( ret < 0) \
  6. goto end; \
  7. memset( (ptr) + (cur_n), 0, (new_n) - (cur_n) * sizeof(*(ptr)) ) \
  8. }
  9. REALLOCZ_ARRAY_STREAM(nb_streams_frames, nb_streams, fmt_ctx->nb_streams);
  10. REALLOCZ_ARRAY_STREAM(nb_streams_packets,fmt_ctx->nb_streams);
  11. REALLOCZ_ARRAY_STREAM(selected_streams,fmt_ctx->nb_streams);
  12. nb_streams = fmt_ctx->nb_streams;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement