From 2b5aff224a537fedf35e63ba7a637cd9ff490e71 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Mon, 24 May 2010 22:43:04 +0200 Subject: [PATCH] Rawvid: rewind to the beginning of the stream when an error occur That fixes the y4m with unknown chroma that avformat can read --- modules/demux/rawvid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/demux/rawvid.c b/modules/demux/rawvid.c index 2eb33ddf7d..120c9e391a 100644 --- a/modules/demux/rawvid.c +++ b/modules/demux/rawvid.c @@ -383,6 +383,7 @@ static int Open( vlc_object_t * p_this ) return VLC_SUCCESS; error: + stream_Seek( p_demux->s, 0 ); // Workaround, but y4m uses stream_ReadLines free( p_sys ); return VLC_EGENERIC; } -- 2.39.2