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
This commit is contained in:
Stefano Sabatini
2008-12-14 19:36:38 +00:00
parent eedfe2227a
commit 335a761a90
2 changed files with 4 additions and 4 deletions

View File

@@ -2563,7 +2563,7 @@ unsigned avcodec_version(void);
*/ */
void avcodec_init(void); void avcodec_init(void);
void register_avcodec(AVCodec *format); void register_avcodec(AVCodec *codec);
/** /**
* Finds a registered encoder with a matching codec ID. * Finds a registered encoder with a matching codec ID.

View File

@@ -87,13 +87,13 @@ AVCodec *av_codec_next(AVCodec *c){
else return first_avcodec; else return first_avcodec;
} }
void register_avcodec(AVCodec *format) void register_avcodec(AVCodec *codec)
{ {
AVCodec **p; AVCodec **p;
p = &first_avcodec; p = &first_avcodec;
while (*p != NULL) p = &(*p)->next; while (*p != NULL) p = &(*p)->next;
*p = format; *p = codec;
format->next = NULL; codec->next = NULL;
} }
void avcodec_set_dimensions(AVCodecContext *s, int width, int height){ void avcodec_set_dimensions(AVCodecContext *s, int width, int height){