Commit b185a7ee authored by Stéphane Borel's avatar Stéphane Borel

Fixed support for broken MPEG-1 files.

--Meuuh
parent 67bc00c9
...@@ -150,7 +150,7 @@ static void PSRead( input_thread_t * p_input, ...@@ -150,7 +150,7 @@ static void PSRead( input_thread_t * p_input,
if( (U32_AT(p_header) & 0xFFFFFF00) != 0x100L ) if( (U32_AT(p_header) & 0xFFFFFF00) != 0x100L )
{ {
u32 i_buffer = U32_AT(p_header); u32 i_buffer = U32_AT(p_header);
intf_ErrMsg( "Garbage at input (%x)\n", i_buffer ); intf_WarnMsg( 1, "Garbage at input (%x)\n", i_buffer );
while( (i_buffer & 0xFFFFFF00) != 0x100L ) while( (i_buffer & 0xFFFFFF00) != 0x100L )
{ {
i_buffer <<= 8; i_buffer <<= 8;
...@@ -161,7 +161,7 @@ static void PSRead( input_thread_t * p_input, ...@@ -161,7 +161,7 @@ static void PSRead( input_thread_t * p_input,
return; return;
} }
} }
*(u32 *)p_header = i_buffer; *(u32 *)p_header = U32_AT(&i_buffer);
fread( p_header + 4, 2, 1, p_method->stream ); fread( p_header + 4, 2, 1, p_method->stream );
} }
......
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