projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3b14e3
)
matroskamux: Put codec_data as CodecPrivate for AV1
author
Olivier Crête
<olivier.crete@collabora.com>
Wed, 25 Jul 2018 21:09:06 +0000
(17:09 -0400)
committer
Olivier Crête
<olivier.crete@collabora.com>
Thu, 26 Jul 2018 18:14:53 +0000
(14:14 -0400)
gst/matroska/matroska-mux.c
patch
|
blob
|
history
diff --git
a/gst/matroska/matroska-mux.c
b/gst/matroska/matroska-mux.c
index
73b7a11
..
2fd6c2c
100644
(file)
--- a/
gst/matroska/matroska-mux.c
+++ b/
gst/matroska/matroska-mux.c
@@
-1231,6
+1231,11
@@
skip_details:
gst_matroska_mux_set_codec_id (context, GST_MATROSKA_CODEC_ID_VIDEO_VP9);
} else if (!strcmp (mimetype, "video/x-av1")) {
gst_matroska_mux_set_codec_id (context, GST_MATROSKA_CODEC_ID_VIDEO_AV1);
+ gst_matroska_mux_free_codec_priv (context);
+ /* Create av1C header */
+ if (codec_buf != NULL)
+ gst_buffer_extract_dup (codec_buf, 0, gst_buffer_get_size (codec_buf),
+ &context->codec_priv, &context->codec_priv_size);
} else if (!strcmp (mimetype, "video/mpeg")) {
gint mpegversion;