]> git.sesse.net Git - vlc/commitdiff
Revert "faad: drop byte of padding for raw streams"
authorTristan Matthews <tmatth@videolan.org>
Mon, 15 Dec 2014 04:50:03 +0000 (23:50 -0500)
committerTristan Matthews <tmatth@videolan.org>
Mon, 15 Dec 2014 14:56:13 +0000 (09:56 -0500)
This reverts commit 937911d559051522554ac6f0d6d35fc0836d541a which was
obsoleted by commit 0fd580b8c0f1590d2b01a5062b4a1d616cd80e1c.

modules/codec/faad.c

index 54191bc87e7683060b82cce3989f71c736f44503..a51861ecd5a0f0dabf3de0881ac02eed63f8c7b1 100644 (file)
@@ -496,19 +496,8 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
         p_sys->i_buffer -= frame.bytesconsumed;
         if( p_sys->i_buffer > 0 )
         {
-            /* drop byte of raw AAC padding (if present) */
-            if ( frame.header_type == RAW &&
-                 p_sys->i_buffer == 1 &&
-                 p_sys->p_buffer[0] == 0x21 &&
-                 p_sys->p_buffer[frame.bytesconsumed] == 0 )
-            {
-                p_sys->i_buffer = 0;
-            }
-            else
-            {
-                memmove( p_sys->p_buffer, &p_sys->p_buffer[frame.bytesconsumed],
-                         p_sys->i_buffer );
-            }
+            memmove( p_sys->p_buffer, &p_sys->p_buffer[frame.bytesconsumed],
+                     p_sys->i_buffer );
         }
 
         return p_out;