[vlc-commits] packetizer: hxxx: fix double ep3b removal

Francois Cartegnie git at videolan.org
Wed Apr 15 17:56:11 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 15 17:49:19 2020 +0200| [e8509578355228a3f8a7ac135688ce5b610735af] | committer: Francois Cartegnie

packetizer: hxxx: fix double ep3b removal

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

 modules/packetizer/hxxx_ep3b.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/hxxx_ep3b.h b/modules/packetizer/hxxx_ep3b.h
index 2ee86d66d9..765092e5b2 100644
--- a/modules/packetizer/hxxx_ep3b.h
+++ b/modules/packetizer/hxxx_ep3b.h
@@ -35,7 +35,7 @@ static inline uint8_t *hxxx_ep3b_to_rbsp( uint8_t *p, uint8_t *end, unsigned *pi
             if( (*pi_prev & 0x06) == 0x06 )
             {
                 ++p;
-                *pi_prev = ((*pi_prev >> 1) << 1) | (!*p);
+                *pi_prev = !*p;
             }
         }
     }



More information about the vlc-commits mailing list