]> git.sesse.net Git - vlc/commitdiff
Revert "ffmpeg: fix corruption in earlier memory copy removal"
authorLaurent Aimar <fenrir@videolan.org>
Mon, 31 Aug 2009 17:38:36 +0000 (19:38 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 31 Aug 2009 17:38:36 +0000 (19:38 +0200)
This reverts commit 39f2d991ddb1ab38074ac485275dd2c6897fe53f.

modules/codec/avcodec/video.c

index 93aa5eeb9103d0eca3ee14619af96363fec2b593..8ce02eecf1a6babcba3c0d649d846356ac71f071 100644 (file)
@@ -534,7 +534,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
         if( !p_block )
             return NULL;
         *pp_block = p_block;
-        memset( p_block->p_buffer + p_block->i_buffer - FF_INPUT_BUFFER_PADDING_SIZE, 0,
+        memset( p_block->p_buffer + p_block->i_buffer, 0,
                 FF_INPUT_BUFFER_PADDING_SIZE );
     }