summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2018-07-12 22:05:27 +0200
committerMathieu Duponchelle <mathieu@centricular.com>2018-07-13 00:53:28 +0200
commitc34dd9bb1ad269daac205143be3516e0e01a74bb (patch)
tree666892fbce829b9ecc5629cbd0b8b4d22386f5e3 /ext
parent9c0dd8ef60a2562af31e63f0dedc83e71dcdf9d9 (diff)
downloadgst-libav-c34dd9bb1ad269daac205143be3516e0e01a74bb.tar.gz
avcfg: ignore some generic properties
We expose profile, level and colorimetry / colorspaces through caps. https://bugzilla.gnome.org/show_bug.cgi?id=792900
Diffstat (limited to 'ext')
-rw-r--r--ext/libav/gstavcfg.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/libav/gstavcfg.c b/ext/libav/gstavcfg.c
index 3f98da2..5152024 100644
--- a/ext/libav/gstavcfg.c
+++ b/ext/libav/gstavcfg.c
@@ -52,6 +52,21 @@ make_generic_overrides (void)
gst_structure_new_empty ("bitrate-tolerance"));
g_hash_table_insert (generic_overrides, g_strdup ("bf"),
gst_structure_new_empty ("max-bframes"));
+
+ /* Those are exposed through caps */
+ g_hash_table_insert (generic_overrides, g_strdup ("profile"),
+ gst_structure_new ("profile", "skip", G_TYPE_BOOLEAN, TRUE, NULL));
+ g_hash_table_insert (generic_overrides, g_strdup ("level"),
+ gst_structure_new ("level", "skip", G_TYPE_BOOLEAN, TRUE, NULL));
+ g_hash_table_insert (generic_overrides, g_strdup ("color_primaries"),
+ gst_structure_new ("color_primaries", "skip", G_TYPE_BOOLEAN, TRUE,
+ NULL));
+ g_hash_table_insert (generic_overrides, g_strdup ("color_trc"),
+ gst_structure_new ("color_trc", "skip", G_TYPE_BOOLEAN, TRUE, NULL));
+ g_hash_table_insert (generic_overrides, g_strdup ("colorspace"),
+ gst_structure_new ("colorspace", "skip", G_TYPE_BOOLEAN, TRUE, NULL));
+ g_hash_table_insert (generic_overrides, g_strdup ("color_range"),
+ gst_structure_new ("color_range", "skip", G_TYPE_BOOLEAN, TRUE, NULL));
}
void