diff options
author | Guido Cella <guido@guidocella.xyz> | 2021-10-02 19:12:39 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-10-14 15:39:07 +0000 |
commit | 00669dabd3f57c4791e463120f73a1566cac2426 (patch) | |
tree | e5e1d00447b617985dc5a56821c82d177193e120 /demux/demux_timeline.c | |
parent | f386fd79b2df57d54d5ec0d93d4958f56a527631 (diff) | |
download | mpv-00669dabd3f57c4791e463120f73a1566cac2426.tar.bz2 mpv-00669dabd3f57c4791e463120f73a1566cac2426.tar.xz |
demux_lavf: improve image detection
This moves the image check to where the number of frames is available of
comparison, which allows not detecting jpg and png videos as images, and
detecting 1-frame gifs as images. This works with the mjpeg and png
videos in the FATE suite, though unfortunately the bmp video is still
detected as an image since it has nb_frames = 0.
aliaspix streams are also now considered images.
Attached pictures are now treated like standalone images, so audio with
attached pictures now has mf-fps as container-fps instead of
unavailable, which makes it consistent with external cover art, which
was already being assigned mf-fps.
Unfortunately images in a codec commonly used for videos are never
detected, and detection was inaccurate even using the now private
codec_info_nb_frames field in AVStream, and mediainfo gets them wrong
too, so I guess it's just a lost cause.
Diffstat (limited to 'demux/demux_timeline.c')
0 files changed, 0 insertions, 0 deletions