comparison utils.c @ 8324:343f0476fd1d libavcodec

Use a more explicit "codec" rather than "format" as the parameter of register_avcodec().
author stefano
date Sun, 14 Dec 2008 19:36:38 +0000
parents f93efc084e41
children 0b905a126bc9
comparison
equal deleted inserted replaced
8323:fa328586b9ce 8324:343f0476fd1d
85 AVCodec *av_codec_next(AVCodec *c){ 85 AVCodec *av_codec_next(AVCodec *c){
86 if(c) return c->next; 86 if(c) return c->next;
87 else return first_avcodec; 87 else return first_avcodec;
88 } 88 }
89 89
90 void register_avcodec(AVCodec *format) 90 void register_avcodec(AVCodec *codec)
91 { 91 {
92 AVCodec **p; 92 AVCodec **p;
93 p = &first_avcodec; 93 p = &first_avcodec;
94 while (*p != NULL) p = &(*p)->next; 94 while (*p != NULL) p = &(*p)->next;
95 *p = format; 95 *p = codec;
96 format->next = NULL; 96 codec->next = NULL;
97 } 97 }
98 98
99 void avcodec_set_dimensions(AVCodecContext *s, int width, int height){ 99 void avcodec_set_dimensions(AVCodecContext *s, int width, int height){
100 s->coded_width = width; 100 s->coded_width = width;
101 s->coded_height= height; 101 s->coded_height= height;