Commit 84f13192 authored by Anton Khirnov's avatar Anton Khirnov

avplay: do not call avcodec_get_frame_defaults().

avcodec_decode_audio4() will reset the frame itself.
parent 95a8a5ac
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment