Improve understanding ofavcodec_find_decoder()

patch by Carl Eugen Hoyos: ! cehoyos ag or at !

Originally committed as revision 9301 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Carl Eugen Hoyos 2007-06-13 08:28:00 +00:00 committed by Benoit Fouet
parent 58d1dc0e9b
commit c9823f0577
2 changed files with 2 additions and 2 deletions

View File

@ -433,8 +433,7 @@ int main(int argc, char **argv)
/* must be called before using avcodec lib */
avcodec_init();
/* register all the codecs (you can also register only the codec
you wish to have smaller code */
/* register all the codecs */
avcodec_register_all();
if (argc <= 1) {

View File

@ -2517,6 +2517,7 @@ int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, v
* @warning This function is not thread safe!
*
* @code
* avcodec_register_all();
* codec = avcodec_find_decoder(CODEC_ID_H264);
* if (!codec)
* exit(1);