rtp: value truncated too short creates dead code
authorLuis de Bethencourt <luis.bg@samsung.com>
Thu, 8 Jan 2015 15:36:04 +0000 (15:36 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 16 Feb 2016 00:24:40 +0000 (00:24 +0000)
commite3d8d8cedba098c4c30df82eec67063c9bf2a08f
tree8c64f0564d0f491d9611732d8ef5192057ae4565
parent59fea44503547fa731333235bae115c930375b69
rtp: value truncated too short creates dead code

type is truncated to 0-31 with "& 0x1f", but right after that it is checks if
the value is equivalent to GST_H265_NAL_VPS, GST_H265_NAL_SPS, and
GST_H265_NAL_PPS (which are 32, 33, and 34 respectively). Obviously, this will
never be True if the value is maximum 31 after the truncation.
The intention of the code was to truncate to 0-63.
gst/rtp/gstrtph265pay.c