2015-06-04 17:03:44 +00:00
|
|
|
From 652357e0da6528b0ff8a8e01782c84c032c9f342 Mon Sep 17 00:00:00 2001
|
2014-06-26 12:39:30 +00:00
|
|
|
From: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
2015-05-26 07:21:59 +00:00
|
|
|
Date: Tue, 26 May 2015 09:33:57 +0300
|
2015-05-13 11:28:17 +00:00
|
|
|
Subject: [PATCH 3/3] h264parse: default to byte-stream/nalu format (Annex B).
|
2014-06-26 12:39:30 +00:00
|
|
|
|
|
|
|
Always default to stream-format=byte-stream,alignment=nalu if avcC
|
|
|
|
format was not detected. This is the natural stream format specified
|
|
|
|
in the standard (Annex.B): a series of NAL units prefixed with the
|
|
|
|
usual start code.
|
|
|
|
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=732167
|
|
|
|
|
|
|
|
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
2015-05-26 07:21:59 +00:00
|
|
|
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
|
2014-06-26 12:39:30 +00:00
|
|
|
---
|
2015-05-26 07:21:59 +00:00
|
|
|
gst/vaapi/gsth264parse.c | 5 ++++-
|
|
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
2014-06-26 12:39:30 +00:00
|
|
|
|
|
|
|
diff --git a/gst/vaapi/gsth264parse.c b/gst/vaapi/gsth264parse.c
|
2015-06-04 17:03:44 +00:00
|
|
|
index 4060145..b5d2955 100644
|
2014-06-26 12:39:30 +00:00
|
|
|
--- a/gst/vaapi/gsth264parse.c
|
|
|
|
+++ b/gst/vaapi/gsth264parse.c
|
2015-06-04 17:03:44 +00:00
|
|
|
@@ -392,7 +392,8 @@ gst_h264_parse_negotiate (GstH264Parse * h264parse, gint in_format,
|
2014-06-26 12:39:30 +00:00
|
|
|
if (!format)
|
|
|
|
format = GST_H264_PARSE_FORMAT_BYTE;
|
|
|
|
if (!align)
|
|
|
|
- align = GST_H264_PARSE_ALIGN_AU;
|
|
|
|
+ align = format == GST_H264_PARSE_FORMAT_BYTE ? GST_H264_PARSE_ALIGN_NAL :
|
|
|
|
+ GST_H264_PARSE_ALIGN_AU;
|
|
|
|
|
|
|
|
GST_DEBUG_OBJECT (h264parse, "selected format %s, alignment %s",
|
|
|
|
gst_h264_parse_get_string (h264parse, TRUE, format),
|
2015-06-04 17:03:44 +00:00
|
|
|
@@ -2264,6 +2265,8 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
|
2014-06-26 12:39:30 +00:00
|
|
|
|
2015-05-26 07:21:59 +00:00
|
|
|
/* bytestream caps sanity checks */
|
|
|
|
if (format == GST_H264_PARSE_FORMAT_BYTE) {
|
|
|
|
+ if (align == GST_H264_PARSE_ALIGN_NONE)
|
2014-06-26 12:39:30 +00:00
|
|
|
+ align = GST_H264_PARSE_ALIGN_NAL;
|
2015-05-26 07:21:59 +00:00
|
|
|
/* should have SPS/PSS in-band (and/or oob in streamheader field) */
|
|
|
|
if (codec_data_value != NULL)
|
|
|
|
goto bytestream_caps_with_codec_data;
|
2014-06-26 12:39:30 +00:00
|
|
|
--
|
2015-05-13 11:28:17 +00:00
|
|
|
2.1.4
|
2014-06-26 12:39:30 +00:00
|
|
|
|