[vlc-devel] commit: h264: fix maximum size calculation ( Rafaël Carré )

git version control git at videolan.org
Mon Mar 31 15:03:07 CEST 2008


vlc | branch: 0.8.6-bugfix | Rafaël Carré <funman at videolan.org> | Mon Mar 31 09:53:56 2008 +0200| [2c78474581b45170094aa7eef23386888494b14e]

h264: fix maximum size calculation
(cherry picked from commit cf34ca7b9307806bedb90f37e40e03de8a84e35b)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c78474581b45170094aa7eef23386888494b14e
---

 modules/packetizer/h264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 4223e15..77269c7 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -444,7 +444,7 @@ static block_t *PacketizeAVC1( decoder_t *p_dec, block_t **pp_block )
         }
 
         if( i_size <= 0 ||
-            i_size >= ( p - p_block->p_buffer + p_block->i_buffer ) )
+            i_size > ( p_block->p_buffer + p_block->i_buffer - p ) )
         {
             msg_Err( p_dec, "Broken frame : size %d is too big", i_size );
             break;




More information about the vlc-devel mailing list