summaryrefslogtreecommitdiffstats
path: root/demux/demux_mf.c
diff options
context:
space:
mode:
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;