]> git.sesse.net Git - vlc/commitdiff
Fixed support for broken MPEG-1 files.
authorStéphane Borel <stef@videolan.org>
Sat, 16 Dec 2000 16:31:11 +0000 (16:31 +0000)
committerStéphane Borel <stef@videolan.org>
Sat, 16 Dec 2000 16:31:11 +0000 (16:31 +0000)
--Meuuh

src/input/input_ps.c

index 063d4310d4649de5f552e5f85a79feaeedb07dc9..5647c4a83f5b7ffe9e84d75612c4dceaef0d258d 100644 (file)
@@ -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 );
     }