Mercurial > libavcodec.hg
comparison utils.c @ 8750:2528b6a2b5d3 libavcodec
Rename register_avcodec() as avcodec_register() and deprecate the old
function name.
author | stefano |
---|---|
date | Fri, 06 Feb 2009 23:46:15 +0000 |
parents | eaa08ce79f9a |
children | 7fd1422a8703 |
comparison
equal
deleted
inserted
replaced
8749:21a41fd79033 | 8750:2528b6a2b5d3 |
---|---|
86 AVCodec *av_codec_next(AVCodec *c){ | 86 AVCodec *av_codec_next(AVCodec *c){ |
87 if(c) return c->next; | 87 if(c) return c->next; |
88 else return first_avcodec; | 88 else return first_avcodec; |
89 } | 89 } |
90 | 90 |
91 void register_avcodec(AVCodec *codec) | 91 void avcodec_register(AVCodec *codec) |
92 { | 92 { |
93 AVCodec **p; | 93 AVCodec **p; |
94 avcodec_init(); | 94 avcodec_init(); |
95 p = &first_avcodec; | 95 p = &first_avcodec; |
96 while (*p != NULL) p = &(*p)->next; | 96 while (*p != NULL) p = &(*p)->next; |
97 *p = codec; | 97 *p = codec; |
98 codec->next = NULL; | 98 codec->next = NULL; |
99 } | |
100 | |
101 void register_avcodec(AVCodec *codec) | |
102 { | |
103 avcodec_register(codec); | |
99 } | 104 } |
100 | 105 |
101 void avcodec_set_dimensions(AVCodecContext *s, int width, int height){ | 106 void avcodec_set_dimensions(AVCodecContext *s, int width, int height){ |
102 s->coded_width = width; | 107 s->coded_width = width; |
103 s->coded_height= height; | 108 s->coded_height= height; |