diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-12-09 11:49:23 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-11 20:39:55 +0100 |
commit | 84f131921ffb43d8070d5680e91f6a24d66ccac4 (patch) | |
tree | 485f96d1e065b76c72a48a622b16d345af62f078 /avplay.c | |
parent | 95a8a5aca60ce37d3abdf121a0285c2e317cf521 (diff) | |
download | ffmpeg-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |