vlc | branch: master | Francois Cartegnie <[email protected]> | 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 );
                 }
             }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to