ffmpeg: fix corruption in earlier memory copy removal
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 31 Aug 2009 15:33:00 +0000 (18:33 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 31 Aug 2009 15:33:29 +0000 (18:33 +0300)
modules/codec/avcodec/video.c

index 8ce02ee..93aa5ee 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, 0,
+        memset( p_block->p_buffer + p_block->i_buffer - FF_INPUT_BUFFER_PADDING_SIZE, 0,
                 FF_INPUT_BUFFER_PADDING_SIZE );
     }