[vlc-commits] packetizer: h264: remove dead code (cid #1346938)
Francois Cartegnie
git at videolan.org
Thu Dec 31 22:51:56 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec 31 18:53:09 2015 +0100| [64876b81b2087b9851241edca9471efc926f47fc] | committer: Francois Cartegnie
packetizer: h264: remove dead code (cid #1346938)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=64876b81b2087b9851241edca9471efc926f47fc
---
modules/packetizer/h264_nal.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index cc22eb3..3563cfa 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -183,8 +183,6 @@ int h264_get_spspps( uint8_t *p_buf, size_t i_buf,
break;
}
- if (i_buf < 4)
- return -1;
i_nal_type = p_buf[3] & 0x1F;
/* The start prefix is always 0x00000001 (annexb_startcode + a
More information about the vlc-commits
mailing list