Opened 3 years ago
Last modified 3 years ago
#10434 new defect
avformat_query_codec() unexpected results
| Reported by: | csab6597 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | 6.0 | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description (last modified by )
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?
Note:
See TracTickets
for help on using tickets.


