Commit 2b5aff22 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
parent 7ad08864
...@@ -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