Commit 0dad9f6c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Rawvid: rewind to the beginning of the stream when an error occur

That fixes the y4m with unknown chroma that avformat can read (Close #3656)
(cherry picked from commit 2b5aff224a537fedf35e63ba7a637cd9ff490e71)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ec5bc33a
...@@ -383,6 +383,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -383,6 +383,7 @@ static int Open( vlc_object_t * p_this )
return VLC_SUCCESS; return VLC_SUCCESS;
error: error:
stream_Seek( p_demux->s, 0 ); // Workaround, but y4m uses stream_ReadLines
free( p_sys ); free( p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment