changeset 9654:ee7203b48e7c

fix crash on streams with frame tags, patch by Brett Kosinski <brettk@frodo.dyn.gno.org>
author alex
date Sat, 22 Mar 2003 19:50:10 +0000
parents d82ee11f70f5
children 8809e2be5cea
files libmpdemux/demux_y4m.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_y4m.c	Sat Mar 22 19:15:23 2003 +0000
+++ b/libmpdemux/demux_y4m.c	Sat Mar 22 19:50:10 2003 +0000
@@ -34,7 +34,6 @@
     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 @@
   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;