# HG changeset patch # User benoit # Date 1181723280 0 # Node ID 0134da1737d04a2ed27cc7a3fb69ae61fd61b571 # Parent 7622ba533e05f6df39ec72141ca953718cd65e94 Improve understanding ofavcodec_find_decoder() patch by Carl Eugen Hoyos: ! cehoyos ag or at ! diff -r 7622ba533e05 -r 0134da1737d0 apiexample.c --- a/apiexample.c Wed Jun 13 08:25:48 2007 +0000 +++ b/apiexample.c Wed Jun 13 08:28:00 2007 +0000 @@ -433,8 +433,7 @@ /* 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) { diff -r 7622ba533e05 -r 0134da1737d0 avcodec.h --- a/avcodec.h Wed Jun 13 08:25:48 2007 +0000 +++ b/avcodec.h Wed Jun 13 08:28:00 2007 +0000 @@ -2517,6 +2517,7 @@ * @warning This function is not thread safe! * * @code + * avcodec_register_all(); * codec = avcodec_find_decoder(CODEC_ID_H264); * if (!codec) * exit(1);