warning flags needed for av_open_input_file
|Reported by:||DonMoir||Owned by:|
|Blocking:||Reproduced by developer:||yes|
|Analyzed by developer:||no|
When you open a video, warnings are sent to stdout. This does you no good if you need to check these warnings. This needs to be tied into AVFormatContext so it is instance driven and not some global setting.
The main case I am looking at now is in asfdec.c and asf_read_header. There are test for DRM Protected etc and message 'decoding will likely fail'. I would like to know about these warnings after I do an open. I have multiples instances of code that can call av_open_input_file from various threads.
Looks like the only thing I can do now is trap log messages which are global which would mean I have to block on av_open_input_file so that I know I am dealing with the right instance. Then do something silly like look at strings from the log callback. If you have another work around let me know.
There are probably other cases where other warnings might be useful as well. Not sure where you would fit these flags in, but ideally as part of the AVFormatContext structure.
Change History (5)
comment:1 Changed 6 years ago by cehoyos
- Reproduced by developer set
- Status changed from new to open
- Version changed from unspecified to git-master