aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-22 19:50:10 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-22 19:50:10 +0000
commitc67632e7f5d4bd2c22140bebea95de1124d945eb (patch)
tree8285e1b1cc3d62b1e53af53961b4d034778dc8e9
parentbdee49a6453093de9020369ee7ed743fb254d7d1 (diff)
fix crash on streams with frame tags, patch by Brett Kosinski <brettk@frodo.dyn.gno.org>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9655 b3059339-0415-0410-9bf9-f77b7e298cf2
-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;