[FFmpeg-cvslog] avplay: do not call avcodec_get_frame_defaults().
Anton Khirnov
git at videolan.org
Wed Dec 11 23:56:38 CET 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Dec 9 11:49:23 2013 +0100| [84f131921ffb43d8070d5680e91f6a24d66ccac4] | committer: Anton Khirnov
avplay: do not call avcodec_get_frame_defaults().
avcodec_decode_audio4() will reset the frame itself.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=84f131921ffb43d8070d5680e91f6a24d66ccac4
---
avplay.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/avplay.c b/avplay.c
index 1cec241..432db97 100644
--- a/avplay.c
+++ b/avplay.c
@@ -1846,8 +1846,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
if (!is->frame) {
if (!(is->frame = av_frame_alloc()))
return AVERROR(ENOMEM);
- } else
- avcodec_get_frame_defaults(is->frame);
+ }
if (flush_complete)
break;
More information about the ffmpeg-cvslog
mailing list