MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_find_decoder

Function ff_find_decoder

libavformat/avformat.c:808–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806}
807
808const AVCodec *ff_find_decoder(AVFormatContext *s, const AVStream *st,
809 enum AVCodecID codec_id)
810{
811 switch (st->codecpar->codec_type) {
812 case AVMEDIA_TYPE_VIDEO:
813 if (s->video_codec) return s->video_codec;
814 break;
815 case AVMEDIA_TYPE_AUDIO:
816 if (s->audio_codec) return s->audio_codec;
817 break;
818 case AVMEDIA_TYPE_SUBTITLE:
819 if (s->subtitle_codec) return s->subtitle_codec;
820 break;
821 }
822
823 return avcodec_find_decoder(codec_id);
824}
825
826int ff_copy_whiteblacklists(AVFormatContext *dst, const AVFormatContext *src)
827{

Callers 2

find_probe_decoderFunction · 0.85
av_find_best_streamFunction · 0.85

Calls 1

avcodec_find_decoderFunction · 0.85

Tested by

no test coverage detected