api-example: remove an unneeded call to avcodec_get_frame_defaults().

avcodec_decode_audio4() resets the frame itself.
This commit is contained in:
Anton Khirnov 2013-12-09 11:55:57 +01:00
parent 281a40e18f
commit 48d17ee6dc
1 changed files with 1 additions and 2 deletions

View File

@ -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) {