h264parse: When input alignment=AU, always drain each packet.
authorJan Schmidt <jan@centricular.com>
Mon, 9 May 2016 17:32:59 +0000 (03:32 +1000)
committerJan Schmidt <jan@centricular.com>
Fri, 24 Jun 2016 12:55:18 +0000 (22:55 +1000)
commit92e7e3a3bf3844942be48aced8b6107b95f2f81e
treec4ce76efdd6f86d50cd9af24941b6f738631fc6c
parentafc0136137d2bef087713fdf81fc216b0455047e
h264parse: When input alignment=AU, always drain each packet.

If the input alignment claims AU alignment, each received
buffer should contain a complete video frame, so never hold over parts
of buffers for later processing. Also reduces latency, as packets
are parsed/converted and output immediately instead of 1 buffer
later.

Fixes a problem where an (arguably disallowed) padding byte on the
end of a buffer is detected as an extra byte in the following
start code, and messes up the timestamping that should apply to
that start code.
gst/videoparsers/gsth264parse.c
gst/videoparsers/gsth264parse.h