aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-12-14 19:36:38 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-12-14 19:36:38 +0000
commit335a761a908bedc7b8b488d04890bcfe36bb812f (patch)
treee1d8da4ccbca211e4526595e30276a60cc863e21
parenteedfe2227a74da5c5180b6d4ab75a61b79bc74f9 (diff)
downloadffmpeg-335a761a908bedc7b8b488d04890bcfe36bb812f.tar.gz
Use a more explicit "codec" rather than "format" as the parameter of
register_avcodec(). Originally committed as revision 16130 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/avcodec.h2
-rw-r--r--libavcodec/utils.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 5ec0d1c9ba..ffc08f50e6 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -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.
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 9b16571f56..755af1ac62 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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){