History

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

avcodec_decode_audio4() resets the frame itself.

Anton Khirnov committed 12 years ago

Commit 48d17ee1 parent 281a40e1 file · +1 −2Browse files

Unified · Split

libavcodec/api-example.c+1−2
@@ -272,8 +272,7 @@ static void audio_decode_example(const char *outfilename, const char *filename) · 271 unmodified lines
272 fprintf(stderr, "out of memory\n");272 fprintf(stderr, "out of memory\n");
273 exit(1);273 exit(1);
274 }274 }
275 } else275 }
276 avcodec_get_frame_defaults(decoded_frame);
277 276
278 len = avcodec_decode_audio4(c, decoded_frame, &got_frame, &avpkt);277 len = avcodec_decode_audio4(c, decoded_frame, &got_frame, &avpkt);
279 if (len < 0) {278 if (len < 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t