comparison apiexample.c @ 5137:0134da1737d0 libavcodec

Improve understanding ofavcodec_find_decoder() patch by Carl Eugen Hoyos: ! cehoyos ag or at !
author benoit
date Wed, 13 Jun 2007 08:28:00 +0000
parents 4dbe6578f811
children 98d37cfc40a1
comparison
equal deleted inserted replaced
5136:7622ba533e05 5137:0134da1737d0
431 const char *filename; 431 const char *filename;
432 432
433 /* must be called before using avcodec lib */ 433 /* must be called before using avcodec lib */
434 avcodec_init(); 434 avcodec_init();
435 435
436 /* register all the codecs (you can also register only the codec 436 /* register all the codecs */
437 you wish to have smaller code */
438 avcodec_register_all(); 437 avcodec_register_all();
439 438
440 if (argc <= 1) { 439 if (argc <= 1) {
441 audio_encode_example("/tmp/test.mp2"); 440 audio_encode_example("/tmp/test.mp2");
442 audio_decode_example("/tmp/test.sw", "/tmp/test.mp2"); 441 audio_decode_example("/tmp/test.sw", "/tmp/test.mp2");