summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Isorce <jisorce@oblong.com>2020-01-27 14:21:48 -0800
committerJulien Isorce <jisorce@oblong.com>2020-01-27 14:22:13 -0800
commitc8b88847919c9cb26205d91111fa11d4d4f44883 (patch)
tree73ba32dc7f4734427195e1746a13f2a310db7e74
parent63555e5cc72fcd411dfc157c174477634f02b492 (diff)
avvidenc: handle GST_VIDEO_MULTIVIEW_MODE_MONO
Otherwise videotestsrc ! avenc_libx265 ! fakesink outputs `Unsupported multiview mode - no mapping in libav`
-rw-r--r--ext/libav/gstavvidenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c
index f9c4923..d0b37ec 100644
--- a/ext/libav/gstavvidenc.c
+++ b/ext/libav/gstavvidenc.c
@@ -501,6 +501,9 @@ static enum AVStereo3DType
stereo_gst_to_av (GstVideoMultiviewMode mview_mode)
{
switch (mview_mode) {
+ case GST_VIDEO_MULTIVIEW_MODE_MONO:
+ /* Video is not stereoscopic (and metadata has to be there). */
+ return AV_STEREO3D_2D;
case GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE:
return AV_STEREO3D_SIDEBYSIDE;
case GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM: