mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
parent
ccab6f45a0
commit
55e2adda37
1 changed files with 3 additions and 3 deletions
|
@ -1168,7 +1168,7 @@ static guint
|
||||||
gst_h264_parse_parse_stream_format (GstH264Parse * h264parse,
|
gst_h264_parse_parse_stream_format (GstH264Parse * h264parse,
|
||||||
const gchar * stream_format)
|
const gchar * stream_format)
|
||||||
{
|
{
|
||||||
if (strcmp (stream_format, "avc-sample") == 0) {
|
if (strcmp (stream_format, "avc") == 0) {
|
||||||
return GST_H264_PARSE_FORMAT_SAMPLE;
|
return GST_H264_PARSE_FORMAT_SAMPLE;
|
||||||
} else if (strcmp (stream_format, "byte-stream") == 0) {
|
} else if (strcmp (stream_format, "byte-stream") == 0) {
|
||||||
return GST_H264_PARSE_FORMAT_BYTE;
|
return GST_H264_PARSE_FORMAT_BYTE;
|
||||||
|
@ -1269,12 +1269,12 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
|
||||||
if (stream_format == NULL) {
|
if (stream_format == NULL) {
|
||||||
gst_structure_remove_field (structure, "stream-format");
|
gst_structure_remove_field (structure, "stream-format");
|
||||||
if (h264parse->format == GST_H264_PARSE_FORMAT_SAMPLE) {
|
if (h264parse->format == GST_H264_PARSE_FORMAT_SAMPLE) {
|
||||||
stream_format = "avc-sample";
|
stream_format = "avc";
|
||||||
} else if (h264parse->format == GST_H264_PARSE_FORMAT_BYTE) {
|
} else if (h264parse->format == GST_H264_PARSE_FORMAT_BYTE) {
|
||||||
stream_format = "byte-stream";
|
stream_format = "byte-stream";
|
||||||
} else {
|
} else {
|
||||||
if (h264parse->packetized) {
|
if (h264parse->packetized) {
|
||||||
stream_format = "avc-sample";
|
stream_format = "avc";
|
||||||
} else {
|
} else {
|
||||||
stream_format = "byte-stream";
|
stream_format = "byte-stream";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue