Skip to content

Commit

Permalink
api-example: remove an unneeded call to avcodec_get_frame_defaults().
Browse files Browse the repository at this point in the history
avcodec_decode_audio4() resets the frame itself.
  • Loading branch information
elenril committed Dec 11, 2013
1 parent 281a40e commit 48d17ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libavcodec/api-example.c
Expand Up @@ -272,8 +272,7 @@ static void audio_decode_example(const char *outfilename, const char *filename)
fprintf(stderr, "out of memory\n");
exit(1);
}
} else
avcodec_get_frame_defaults(decoded_frame);
}

len = avcodec_decode_audio4(c, decoded_frame, &got_frame, &avpkt);
if (len < 0) {
Expand Down

0 comments on commit 48d17ee

Please sign in to comment.