h264parser: remove trailling 0x00 bytes as the spec doesn't allow them
authorThiago Santos <ts.santos@sisa.samsung.com>
Mon, 20 Jan 2014 20:24:54 +0000 (17:24 -0300)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 21 Mar 2014 13:47:44 +0000 (14:47 +0100)
commit95f9f0f2830295d205af4e382d117f69c87b701c
tree14476829a9a024e79b2bfff2b537796acb0af39d
parent766007b82359b9c6ceba0b8dbdce0b455cfb6029
h264parser: remove trailling 0x00 bytes as the spec doesn't allow them

The spec states that the last byte of a NAL 'shall not' be 0x00
and it is allowed for byte-stream format to add padding 0x00 for
alignment.

So our parser should strip any trailling 0x00.

https://bugzilla.gnome.org/show_bug.cgi?id=721384
gst-libs/gst/codecparsers/gsth264parser.c