avcodec_find_encoder_by_name() patch by Alex
Originally committed as revision 237 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -155,6 +155,18 @@ AVCodec *avcodec_find_encoder(enum CodecID id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
AVCodec *avcodec_find_encoder_by_name(const char *name)
|
||||
{
|
||||
AVCodec *p;
|
||||
p = first_avcodec;
|
||||
while (p) {
|
||||
if (p->encode != NULL && strcmp(name,p->name) == 0)
|
||||
return p;
|
||||
p = p->next;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
AVCodec *avcodec_find_decoder(enum CodecID id)
|
||||
{
|
||||
AVCodec *p;
|
||||
|
Reference in New Issue
Block a user