[vlc-devel] commit: ffmpeg: fix corruption in earlier memory copy removal ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Aug 31 17:33:32 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 31 18:33:00 2009 +0300| [39f2d991ddb1ab38074ac485275dd2c6897fe53f] | committer: Rémi Denis-Courmont
ffmpeg: fix corruption in earlier memory copy removal
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=39f2d991ddb1ab38074ac485275dd2c6897fe53f
---
modules/codec/avcodec/video.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 8ce02ee..93aa5ee 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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 );
}
More information about the vlc-devel
mailing list