vlc | branch: master | Thomas Guillem <[email protected]> | Thu Dec 10 17:25:25 
2015 +0100| [40388189b989554a881fc225a20f8644ca377658] | committer: Thomas 
Guillem

packetizer: h264_nal: fix get_avcC_to_AnnexB_NAL_size

Only the SPS was detected.

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

 modules/packetizer/h264_nal.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index ffa8fb5..39e5c57 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -82,6 +82,7 @@ static size_t get_avcC_to_AnnexB_NAL_size( const uint8_t 
*p_buf, size_t i_buf )
             if(i_nal_size > i_buf - 2)
                 return 0;
             i_total += i_nal_size + 4;
+            p_buf += i_nal_size + 2;
             i_buf -= i_nal_size + 2;
         }
     }

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

Reply via email to