From c9823f05778ca197681a6c9960590d66816ddcfe Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 13 Jun 2007 08:28:00 +0000 Subject: 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 --- libavcodec/apiexample.c | 3 +-- libavcodec/avcodec.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c index 435f409916..793cfaa040 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 806be53255..19dc0edd50 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); -- cgit v1.2.3