comparison utils.c @ 177:53da914d6f46 libavcodec

avcodec_find_encoder_by_name() patch by Alex
author arpi_esp
date Sun, 23 Dec 2001 22:25:18 +0000
parents 7e263a256a6f
children e1bacfb3f51f
comparison
equal deleted inserted replaced
176:9ce215ee9216 177:53da914d6f46
153 p = p->next; 153 p = p->next;
154 } 154 }
155 return NULL; 155 return NULL;
156 } 156 }
157 157
158 AVCodec *avcodec_find_encoder_by_name(const char *name)
159 {
160 AVCodec *p;
161 p = first_avcodec;
162 while (p) {
163 if (p->encode != NULL && strcmp(name,p->name) == 0)
164 return p;
165 p = p->next;
166 }
167 return NULL;
168 }
169
158 AVCodec *avcodec_find_decoder(enum CodecID id) 170 AVCodec *avcodec_find_decoder(enum CodecID id)
159 { 171 {
160 AVCodec *p; 172 AVCodec *p;
161 p = first_avcodec; 173 p = first_avcodec;
162 while (p) { 174 while (p) {