[FFmpeg-cvslog] r16130 - in trunk/libavcodec: avcodec.h utils.c
stefano
subversion
Sun Dec 14 20:36:38 CET 2008
Author: stefano
Date: Sun Dec 14 20:36:38 2008
New Revision: 16130
Log:
Use a more explicit "codec" rather than "format" as the parameter of
register_avcodec().
Modified:
trunk/libavcodec/avcodec.h
trunk/libavcodec/utils.c
Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h (original)
+++ trunk/libavcodec/avcodec.h Sun Dec 14 20:36:38 2008
@@ -2563,7 +2563,7 @@ unsigned avcodec_version(void);
*/
void avcodec_init(void);
-void register_avcodec(AVCodec *format);
+void register_avcodec(AVCodec *codec);
/**
* Finds a registered encoder with a matching codec ID.
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c (original)
+++ trunk/libavcodec/utils.c Sun Dec 14 20:36:38 2008
@@ -87,13 +87,13 @@ AVCodec *av_codec_next(AVCodec *c){
else return first_avcodec;
}
-void register_avcodec(AVCodec *format)
+void register_avcodec(AVCodec *codec)
{
AVCodec **p;
p = &first_avcodec;
while (*p != NULL) p = &(*p)->next;
- *p = format;
- format->next = NULL;
+ *p = codec;
+ codec->next = NULL;
}
void avcodec_set_dimensions(AVCodecContext *s, int width, int height){
More information about the ffmpeg-cvslog
mailing list