MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / main

Function main

libavcodec/api-example.c:443–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443int main(int argc, char **argv)
444{
445 const char *filename;
446
447 /* must be called before using avcodec lib */
448 avcodec_init();
449
450 /* register all the codecs */
451 avcodec_register_all();
452
453 if (argc <= 1) {
454 audio_encode_example("/tmp/test.mp2");
455 audio_decode_example("/tmp/test.sw", "/tmp/test.mp2");
456
457 video_encode_example("/tmp/test.mpg");
458 filename = "/tmp/test.mpg";
459 } else {
460 filename = argv[1];
461 }
462
463 // audio_decode_example("/tmp/test.sw", filename);
464 video_decode_example("/tmp/test%d.pgm", filename);
465
466 return 0;
467}

Callers

nothing calls this directly

Calls 6

avcodec_initFunction · 0.85
avcodec_register_allFunction · 0.85
audio_encode_exampleFunction · 0.85
audio_decode_exampleFunction · 0.85
video_encode_exampleFunction · 0.85
video_decode_exampleFunction · 0.85

Tested by

no test coverage detected