avplay: do not call avcodec_get_frame_defaults().

avcodec_decode_audio4() will reset the frame itself.
This commit is contained in:
Anton Khirnov 2013-12-09 11:49:23 +01:00
parent 95a8a5aca6
commit 84f131921f

View File

@ -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;