diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-05-06 16:58:28 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-05-10 07:32:10 +0200 |
commit | d4455d37c4f110ace6f8344e5aad64fc5217947b (patch) | |
tree | c44254a4b20fc1a5b4a891dee7016dc63142cc24 /libavformat/utils.c | |
parent | 437484a66a3c1d002ab6683eab6eba90d517a35a (diff) |
avformat/utils: Move avformat_query_codec() to mux_utils.c
It is obviously muxer-only.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 58d2524457..640ce57f82 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1140,24 +1140,6 @@ int ff_find_stream_index(const AVFormatContext *s, int id) return -1; } -int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id, - int std_compliance) -{ - if (ofmt) { - unsigned int codec_tag; - if (ofmt->query_codec) - return ofmt->query_codec(codec_id, std_compliance); - else if (ofmt->codec_tag) - return !!av_codec_get_tag2(ofmt->codec_tag, codec_id, &codec_tag); - else if (codec_id == ofmt->video_codec || - codec_id == ofmt->audio_codec || - codec_id == ofmt->subtitle_codec || - codec_id == ofmt->data_codec) - return 1; - } - return AVERROR_PATCHWELCOME; -} - int avformat_network_init(void) { #if CONFIG_NETWORK |