Merge commit '598ce4ab4f'
* commit '598ce4ab4f':
h264: call av_frame_unref() instead of avcodec_get_frame_defaults().
Conflicts:
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
e3578fd525
1 changed files with 3 additions and 3 deletions
|
|
@ -1379,8 +1379,8 @@ int ff_h264_alloc_tables(H264Context *h)
|
|||
if (!h->DPB)
|
||||
return AVERROR(ENOMEM);
|
||||
for (i = 0; i < MAX_PICTURE_COUNT; i++)
|
||||
avcodec_get_frame_defaults(&h->DPB[i].f);
|
||||
avcodec_get_frame_defaults(&h->cur_pic.f);
|
||||
av_frame_unref(&h->DPB[i].f);
|
||||
av_frame_unref(&h->cur_pic.f);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
@ -1815,7 +1815,7 @@ static int decode_update_thread_context(AVCodecContext *dst,
|
|||
h->context_initialized = 0;
|
||||
|
||||
memset(&h->cur_pic, 0, sizeof(h->cur_pic));
|
||||
avcodec_get_frame_defaults(&h->cur_pic.f);
|
||||
av_frame_unref(&h->cur_pic.f);
|
||||
h->cur_pic.tf.f = &h->cur_pic.f;
|
||||
|
||||
ret = ff_h264_alloc_tables(h);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue