| 806 | } |
| 807 | |
| 808 | const 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 | |
| 826 | int ff_copy_whiteblacklists(AVFormatContext *dst, const AVFormatContext *src) |
| 827 | { |
no test coverage detected