[FFmpeg-cvslog] r9301 - in trunk/libavcodec: apiexample.c avcodec.h
benoit
subversion
Wed Jun 13 10:28:00 CEST 2007
Author: benoit
Date: Wed Jun 13 10:28:00 2007
New Revision: 9301
Log:
Improve understanding ofavcodec_find_decoder()
patch by Carl Eugen Hoyos: ! cehoyos ag or at !
Modified:
trunk/libavcodec/apiexample.c
trunk/libavcodec/avcodec.h
Modified: trunk/libavcodec/apiexample.c
==============================================================================
--- trunk/libavcodec/apiexample.c (original)
+++ trunk/libavcodec/apiexample.c Wed Jun 13 10:28:00 2007
@@ -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) {
Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h (original)
+++ trunk/libavcodec/avcodec.h Wed Jun 13 10:28:00 2007
@@ -2517,6 +2517,7 @@ int avcodec_default_execute(AVCodecConte
* @warning This function is not thread safe!
*
* @code
+ * avcodec_register_all();
* codec = avcodec_find_decoder(CODEC_ID_H264);
* if (!codec)
* exit(1);
More information about the ffmpeg-cvslog
mailing list