mpv/demux
Guido Cella 00669dabd3 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.
2021-10-14 15:39:07 +00:00
..
cache.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
cache.h
codec_tags.c
codec_tags.h
cue.c
cue.h
demux.c demux: acquire lock before calling update_bytes_read 2021-07-13 15:16:59 +00:00
demux.h demux: Move demuxer help to new standard mechanism 2021-03-28 19:46:32 +03:00
demux_cue.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
demux_disc.c
demux_edl.c edl: add a way to add tags 2021-05-11 22:18:40 +02:00
demux_lavf.c demux_lavf: improve image detection 2021-10-14 15:39:07 +00:00
demux_libarchive.c stream_libarchive: remember archive headers from initial open 2020-04-28 22:13:03 -07:00
demux_mf.c Revert "player: add track-list/N/image sub-property" 2021-10-02 16:55:13 +00:00
demux_mkv.c Revert "player: add track-list/N/image sub-property" 2021-10-02 16:55:13 +00:00
demux_mkv_timeline.c demux_mkv: warn against some other aspects of mismatching codec data 2020-08-16 01:00:29 +02:00
demux_null.c
demux_playlist.c demux_playlist: extend maximum line size (again) to 2M 2021-09-06 10:16:25 +03:00
demux_raw.c options: cleanup .min use for OPT_CHANNELS 2020-04-09 11:27:38 +02:00
demux_timeline.c Revert "player: add track-list/N/image sub-property" 2021-10-02 16:55:13 +00:00
ebml.c build: change filenames of generated files 2020-06-04 16:59:05 +02:00
ebml.h build: change filenames of generated files 2020-06-04 16:59:05 +02:00
matroska.h
packet.c
packet.h
stheader.h Revert "player: add track-list/N/image sub-property" 2021-10-02 16:55:13 +00:00
timeline.c
timeline.h edl: make it possible to delay-load files with multiple tracks 2020-02-21 00:19:17 +01:00