| 441 | } |
| 442 | |
| 443 | int 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 | } |
nothing calls this directly
no test coverage detected