diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-12-09 11:48:25 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-11 20:39:55 +0100 |
commit | 95a8a5aca60ce37d3abdf121a0285c2e317cf521 (patch) | |
tree | 14a3b89e4bd9b41a63c81b31a07ce4d982d21dcf /libavcodec/utils.c | |
parent | 674fa49110a661694188a958be13d529b7c8c5dd (diff) | |
download | ffmpeg-95a8a5aca60ce37d3abdf121a0285c2e317cf521.tar.gz |
lavc: call av_frame_unref() instead of avcodec_get_frame_defaults().
avcodec_get_frame_defaults() will be deprecated.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 25f16c0a26..e078a11408 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1433,7 +1433,7 @@ int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *pi return ret; } - avcodec_get_frame_defaults(picture); + av_frame_unref(picture); if ((avctx->codec->capabilities & CODEC_CAP_DELAY) || avpkt->size || (avctx->active_thread_type & FF_THREAD_FRAME)) { if (HAVE_THREADS && avctx->active_thread_type & FF_THREAD_FRAME) @@ -1494,7 +1494,7 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx, return ret; } - avcodec_get_frame_defaults(frame); + av_frame_unref(frame); if ((avctx->codec->capabilities & CODEC_CAP_DELAY) || avpkt->size) { ret = avctx->codec->decode(avctx, frame, got_frame_ptr, avpkt); |