[vlc-commits] encoders: shroedinger: fix invalid write
Francois Cartegnie
git at videolan.org
Thu Jan 16 19:35:41 CET 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jan 16 02:22:33 2014 +0100| [3ae14a6063cfa541e70f83ff90d8b059674e51b0] | committer: Francois Cartegnie
encoders: shroedinger: fix invalid write
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3ae14a6063cfa541e70f83ff90d8b059674e51b0
---
modules/codec/schroedinger.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/schroedinger.c b/modules/codec/schroedinger.c
index e949e1d..add6903 100644
--- a/modules/codec/schroedinger.c
+++ b/modules/codec/schroedinger.c
@@ -1553,7 +1553,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pic )
return NULL;
memcpy( p_enc->fmt_out.p_extra, p_block->p_buffer, len );
memcpy( (uint8_t*)p_enc->fmt_out.p_extra + len, eos, sizeof( eos ) );
- SetDWBE( (uint8_t*)p_enc->fmt_out.p_extra + len + 10, len );
+ SetDWBE( (uint8_t*)p_enc->fmt_out.p_extra + len + sizeof(eos) - 4, len );
p_enc->fmt_out.i_extra = len + sizeof( eos );
}
}
More information about the vlc-commits
mailing list