Commit 1aac24a2 authored by stefano's avatar stefano

Use a more explicit "codec" rather than "format" as the parameter of

register_avcodec().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16130 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6adf4150
...@@ -2563,7 +2563,7 @@ unsigned avcodec_version(void); ...@@ -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.
......
...@@ -87,13 +87,13 @@ AVCodec *av_codec_next(AVCodec *c){ ...@@ -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){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment