提交 c9823f05 编写于 作者: C Carl Eugen Hoyos 提交者: Benoit Fouet

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
上级 58d1dc0e
...@@ -433,8 +433,7 @@ int main(int argc, char **argv) ...@@ -433,8 +433,7 @@ int main(int argc, char **argv)
/* must be called before using avcodec lib */ /* must be called before using avcodec lib */
avcodec_init(); avcodec_init();
/* register all the codecs (you can also register only the codec /* register all the codecs */
you wish to have smaller code */
avcodec_register_all(); avcodec_register_all();
if (argc <= 1) { if (argc <= 1) {
......
...@@ -2517,6 +2517,7 @@ int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, v ...@@ -2517,6 +2517,7 @@ int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, v
* @warning This function is not thread safe! * @warning This function is not thread safe!
* *
* @code * @code
* avcodec_register_all();
* codec = avcodec_find_decoder(CODEC_ID_H264); * codec = avcodec_find_decoder(CODEC_ID_H264);
* if (!codec) * if (!codec)
* exit(1); * exit(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册