"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libavcodec/mimic.c" between
libav-11.7.tar.gz and libav-11.8.tar.gz

About: libav provides cross-platform tools ("avconv") and libraries to convert, manipulate and stream a wide range of multimedia (audio and video) formats and protocols.

mimic.c  (libav-11.7):mimic.c  (libav-11.8)
skipping to change at line 451 skipping to change at line 451
return res; return res;
} }
if ((res = av_frame_ref(data, ctx->frames[ctx->cur_index].f)) < 0) if ((res = av_frame_ref(data, ctx->frames[ctx->cur_index].f)) < 0)
return res; return res;
*got_frame = 1; *got_frame = 1;
ctx->prev_index = ctx->next_prev_index; ctx->prev_index = ctx->next_prev_index;
ctx->cur_index = ctx->next_cur_index; ctx->cur_index = ctx->next_cur_index;
/* Only release frames that aren't used for backreferences anymore */
ff_thread_release_buffer(avctx, &ctx->frames[ctx->cur_index]);
return buf_size; return buf_size;
} }
static av_cold int mimic_init_thread_copy(AVCodecContext *avctx) static av_cold int mimic_init_thread_copy(AVCodecContext *avctx)
{ {
MimicContext *ctx = avctx->priv_data; MimicContext *ctx = avctx->priv_data;
int i; int i;
for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) { for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) {
ctx->frames[i].f = av_frame_alloc(); ctx->frames[i].f = av_frame_alloc();
 End of changes. 1 change blocks. 
3 lines changed or deleted 0 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS