Skip to content

Commit

Permalink
avplay: do not call avcodec_get_frame_defaults().
Browse files Browse the repository at this point in the history
avcodec_decode_audio4() will reset the frame itself.
  • Loading branch information
elenril committed Dec 11, 2013
1 parent 95a8a5a commit 84f1319
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions avplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 84f1319

Please sign in to comment.