h264parse : H264 that have SPS without PPS following
Submitted by Aurelien BOUIN
Link to original bug (#783861)
Description
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