[FFmpeg-devel] [PATCH] lavu: make av_get_media_type_string() never return NULL

Anton Khirnov anton at khirnov.net
Wed Feb 23 09:52:42 EET 2022


Quoting Andreas Rheinhardt (2022-02-02 03:13:12)
> Who sets invalid media types?
> (In case of fftools/*: If they don't set it themselves, they (and all
> our users) should be able to rely on our libraries to not set invalid
> values. The same goes for all demuxers (as they set this value
> themselves). Checks are only necessary where the media type comes from
> the user; this means muxers (where the check should be done generically)
> and possibly avfiltergraph.c (I am pretty sure that the type has already
> been checked earlier for filters).)

Some demuxer code in lavf looks like it might result in a TYPE_UNKNOWN
AVStream. E.g. argo_brp, avi, both asfdecs, gxf.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list