GNOME Bugzilla – Bug 783861
h264parse : H264 that have SPS without PPS following
Last modified: 2018-11-03 14:09:51 UTC
h264parse drop frames when there was no previous picture headers ( GST_H264_PARSE_STATE_VALID_PICTURE_HEADERS). But some H264 encoder generate SPS header without PPS header following ... The code in plugins-bad/gst/videoparsers/gsth264parse.c when receiving SPS GST_H264_NAL_SUBSET_SPS reset h264parse->state to 0 (meaning that previous SPS and PPS headers are ignored), instead of just considering SPS state only So the change would be something like : h264parse->state &= GST_H264_PARSE_STATE_GOT_PPS; instead of h264parse->state = 0; Attached is a H264 video with PPS missing
Created attachment 353895 [details] Attached is a H264 video with PPS missing
Created attachment 353896 [details] [review] PATCH : It solves the problem and do not change the old behaviour
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/571.