summaryrefslogtreecommitdiff
path: root/avplay.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-12-09 11:49:23 +0100
committerAnton Khirnov <anton@khirnov.net>2013-12-11 20:39:55 +0100
commit84f131921ffb43d8070d5680e91f6a24d66ccac4 (patch)
tree485f96d1e065b76c72a48a622b16d345af62f078 /avplay.c
parent95a8a5aca60ce37d3abdf121a0285c2e317cf521 (diff)
downloadffmpeg-84f131921ffb43d8070d5680e91f6a24d66ccac4.tar.gz
avplay: do not call avcodec_get_frame_defaults().
avcodec_decode_audio4() will reset the frame itself.
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/avplay.c b/avplay.c
index 1cec241c20..432db97823 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;