Commit 108ed204 authored by benoit's avatar benoit

Improve understanding ofavcodec_find_decoder()

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9301 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a8abf3f5
......@@ -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) {
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment