Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2019-02-25 14:23:56 +0300
committerTim-Philipp Müller <tim@centricular.com>2019-03-01 20:37:55 +0300
commit899d0c4b3bdcdf91744c8ffb04b0a19dcdc5043d (patch)
tree67839a7843d4025fe480622d671ae09bf0d0ae85
parent83b45abe74820935315714268dd114d42215b693 (diff)
matroskademux: fix AV1 caps when there's no codec_data
There is no "byte-stream" format for AV1 in Matroska, this was probably cargo-culted from H.264. codec_data / CodecPrivate is now mandatory for AV1 in Matroska[*], but there are sample files out there which don't have it (e.g. some Elecard ones). [*] https://github.com/Matroska-Org/matroska-specification/blob/master/codec/av1.md#codecprivate-1
-rw-r--r--gst/matroska/matroska-demux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 611463c10..b2cd9b5d4 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -6274,9 +6274,7 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext *
gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER, priv, NULL);
gst_buffer_unref (priv);
} else {
- GST_WARNING ("No codec data found, assuming output is byte-stream");
- gst_caps_set_simple (caps, "stream-format", G_TYPE_STRING, "byte-stream",
- NULL);
+ GST_WARNING ("No AV1 codec data found!");
}
*codec_name = g_strdup_printf ("AOM AV1");
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_VIDEO_PRORES)) {