[FFmpeg-trac] #10434(undetermined:new): avformat_query_codec() unexpected results
FFmpeg
trac at avcodec.org
Mon Jun 26 20:24:39 EEST 2023
#10434: avformat_query_codec() unexpected results
----------------------------------+----------------------------------------
Reporter: csab6597 | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: undetermined
Version: 6.0 | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+----------------------------------------
Description changed by csab6597:
Old description:
> using the code
> {{{
> const AVOutputFormat* ofmt = av_guess_format("MP4", nullptr, nullptr);
> int supported = avformat_query_codec(ofmt, AV_CODEC_ID_VORBIS,
> FF_COMPLIANCE_STRICT);
> }}}
> I find the returned value of 1 surprising, which would be indicating
> support. Actually the result is always 1 no matter which compliance level
> is provided. And testing a few other codecs I found the same situation.
> For example AV_CODEC_AV1 also always checks out as beeing supported,
> which I expected not to be at least for more strict compliance levels??
New description:
using the code
{{{
const AVOutputFormat* ofmt = av_guess_format("MP4", nullptr, nullptr);
int supported = avformat_query_codec(ofmt, AV_CODEC_ID_VORBIS,
FF_COMPLIANCE_STRICT);
}}}
I find the returned value of 1 surprising, which would be indicating
support. Actually the result is always 1 no matter which compliance level
is provided. And testing a few other codecs I found the same situation.
For example AV_CODEC_AV1 also always checks out as beeing supported, which
I expected not to be at least for more strict compliance levels??
Edit: There seem to be some more incosistencies as for example the MP3
container does not seem to have any supported codecs, not even
AV_CODEC_ID_MP3?
--
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10434#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list