summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpdemux/demux_y4m.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/demux_y4m.c b/libmpdemux/demux_y4m.c
index c259308928..833ccaa735 100644
--- a/libmpdemux/demux_y4m.c
+++ b/libmpdemux/demux_y4m.c
@@ -34,7 +34,6 @@ int y4m_check_file(demuxer_t* demuxer){
buf[9] = 0;
if (strncmp("YUV4MPEG2", buf, 9) && strncmp("YUV4MPEG ", buf, 9)) {
- mp_msg(MSGT_DEMUX, MSGL_DBG2, "Failed: YUV4MPEG2\n");
return 0;
}
@@ -68,6 +67,8 @@ int demux_y4m_fill_buffer(demuxer_t *demux) {
unsigned char *buf[3];
int err, size;
+ y4m_init_frame_info(&fi);
+
demux->filepos=stream_tell(demux->stream);
size = ((sh_video_t*)ds->sh)->disp_w*((sh_video_t*)ds->sh)->disp_h;