diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c index 435f409916835bcd5d41f4cfbfe53bcb36dba88e..793cfaa04072804d7d36072e19a6d10e08befbea 100644 --- a/libavcodec/apiexample.c +++ b/libavcodec/apiexample.c @@ -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) { diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 806be53255e75992b8801b9434523ae817929242..19dc0edd50fbf52ff0bb352a2bf2451f8faf53f9 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -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);