summaryrefslogtreecommitdiffstats
path: root/demux/demux_mf.c
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2021-10-02 18:45:27 +0300
committerDudemanguy <random342@airmail.cc>2021-10-02 16:55:13 +0000
commit5304e9fe31d5c1059199fea0655e6e3eabb93b3e (patch)
treeaff9c20c41fcda9f23633f7af29d850be365fdfa /demux/demux_mf.c
parent64fa440c697b9b8e96e14e33f7e79c6674c5b1a3 (diff)
downloadmpv-5304e9fe31d5c1059199fea0655e6e3eabb93b3e.tar.bz2
mpv-5304e9fe31d5c1059199fea0655e6e3eabb93b3e.tar.xz
Revert "player: add track-list/N/image sub-property"
Unfortunately, this functionality in large part based on a struct member that was made private in FFmpeg/FFmpeg@7489f632815c98ad58c3db71d1a5239b5dae266c in May. Unfortunately, this was not noticed during review. This reverts commit 0862664ac952d21fef531a8923a58ae575268fc5.
Diffstat (limited to 'demux/demux_mf.c')
-rw-r--r--demux/demux_mf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/demux/demux_mf.c b/demux/demux_mf.c
index 69fa0fa91c..40f94f4e4e 100644
--- a/demux/demux_mf.c
+++ b/demux/demux_mf.c
@@ -381,12 +381,8 @@ static int demux_open_mf(demuxer_t *demuxer, enum demux_check check)
// create a new video stream header
struct sh_stream *sh = demux_alloc_sh_stream(STREAM_VIDEO);
- if (mf->nr_of_files == 1) {
- MP_VERBOSE(demuxer, "Assuming this is an image format.\n");
- sh->image = true;
- }
-
struct mp_codec_params *c = sh->codec;
+
c->codec = codec;
c->disp_w = 0;
c->disp_h = 0;