diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-12 00:07:50 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-12 00:08:08 +0100 |
commit | 3b2b07397c41dce79d0bb0ecad6321e7349c00b7 (patch) | |
tree | 3ed3ba9f781f7052798df0b18be0fd047e145f45 /libavcodec/mpegvideo.c | |
parent | efb5ebe83258ad4b4f610c93b690c63da2fb57a3 (diff) | |
parent | 2d1f4288dd02a624cb8b86ab06371d6434c9da69 (diff) | |
download | ffmpeg-3b2b07397c41dce79d0bb0ecad6321e7349c00b7.tar.gz |
Merge commit '2d1f4288dd02a624cb8b86ab06371d6434c9da69'
* commit '2d1f4288dd02a624cb8b86ab06371d6434c9da69':
mpegvideo: call av_frame_unref() instead of avcodec_get_frame_defaults().
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 6ed0f2e4ee..4c25845b8c 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1047,14 +1047,14 @@ av_cold int ff_MPV_common_init(MpegEncContext *s) FF_ALLOCZ_OR_GOTO(s->avctx, s->picture, MAX_PICTURE_COUNT * sizeof(Picture), fail); for (i = 0; i < MAX_PICTURE_COUNT; i++) { - avcodec_get_frame_defaults(&s->picture[i].f); + av_frame_unref(&s->picture[i].f); } memset(&s->next_picture, 0, sizeof(s->next_picture)); memset(&s->last_picture, 0, sizeof(s->last_picture)); memset(&s->current_picture, 0, sizeof(s->current_picture)); - avcodec_get_frame_defaults(&s->next_picture.f); - avcodec_get_frame_defaults(&s->last_picture.f); - avcodec_get_frame_defaults(&s->current_picture.f); + av_frame_unref(&s->next_picture.f); + av_frame_unref(&s->last_picture.f); + av_frame_unref(&s->current_picture.f); if (init_context_frame(s)) goto fail; |