From 69c09c38cf7f086835c2d4c07531eed30b5ebfdf Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 17 Apr 2015 15:36:49 +0200 Subject: [PATCH] h264parse: Consider SEI NALU as "HEADER" packets Like SPS/PPS they do contain information which will be needed to decode the following data (as per definition of the flag) Also ensures that the series of SPS/PPS/SEI NALU before a keyframe can be considered as one contiguous header --- gst/videoparsers/gsth264parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 969342eb48..76f7686813 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -655,6 +655,7 @@ gst_h264_parse_process_nal (GstH264Parse * h264parse, GstH264NalUnit * nalu) if (!GST_H264_PARSE_STATE_VALID (h264parse, GST_H264_PARSE_STATE_GOT_SPS)) return FALSE; + h264parse->header |= TRUE; gst_h264_parse_process_sei (h264parse, nalu); /* mark SEI pos */ if (h264parse->sei_pos == -1) {