mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
627690b5a2
commit
98f3b098f9
@ -230,6 +230,7 @@ void avcodec_init(void);
|
|||||||
|
|
||||||
void register_avcodec(AVCodec *format);
|
void register_avcodec(AVCodec *format);
|
||||||
AVCodec *avcodec_find_encoder(enum CodecID id);
|
AVCodec *avcodec_find_encoder(enum CodecID id);
|
||||||
|
AVCodec *avcodec_find_encoder_by_name(const char *name);
|
||||||
AVCodec *avcodec_find_decoder(enum CodecID id);
|
AVCodec *avcodec_find_decoder(enum CodecID id);
|
||||||
AVCodec *avcodec_find_decoder_by_name(const char *name);
|
AVCodec *avcodec_find_decoder_by_name(const char *name);
|
||||||
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode);
|
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode);
|
||||||
|
@ -155,6 +155,18 @@ AVCodec *avcodec_find_encoder(enum CodecID id)
|
|||||||
return NULL;
|
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 *avcodec_find_decoder(enum CodecID id)
|
||||||
{
|
{
|
||||||
AVCodec *p;
|
AVCodec *p;
|
||||||
|
Loading…
Reference in New Issue
Block a user