From b185a7ee16900668d240973dc787ee4480e59148 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Borel?= Date: Sat, 16 Dec 2000 16:31:11 +0000 Subject: [PATCH] Fixed support for broken MPEG-1 files. --Meuuh --- src/input/input_ps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/input_ps.c b/src/input/input_ps.c index 063d4310d4..5647c4a83f 100644 --- a/src/input/input_ps.c +++ b/src/input/input_ps.c @@ -150,7 +150,7 @@ static void PSRead( input_thread_t * p_input, if( (U32_AT(p_header) & 0xFFFFFF00) != 0x100L ) { 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 ) { i_buffer <<= 8; @@ -161,7 +161,7 @@ static void PSRead( input_thread_t * p_input, return; } } - *(u32 *)p_header = i_buffer; + *(u32 *)p_header = U32_AT(&i_buffer); fread( p_header + 4, 2, 1, p_method->stream ); } -- 2.39.2