h264parse: do not push wrong PTS with some raw files
authorJosep Torra <jtorra@oblong.com>
Mon, 11 Nov 2019 20:40:07 +0000 (12:40 -0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 10 Jan 2020 15:03:38 +0000 (15:03 +0000)
commitbebf20c9066eb39cfe94f0cd70fc2642a778e524
tree5536b9cf9ca088496e534539b42c8ee919439854
parenta4c925f694799b2534e9447f802cc28f7dd4f9b7
h264parse: do not push wrong PTS with some raw files

Some raw h264 encoded files trigger the assignment of wrong PTS to buffers
when some SEI data is provided. This change prevents it to happen.

Also ensure this behavior is being tested.
gst/videoparsers/gsth264parse.c
tests/check/elements/h264parse.c