From 5a745829dc69c1e73224b1f6ba21723e44c0ba4a Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 29 Jul 2016 15:52:48 -0400 Subject: [PATCH] validate: Add jpeg as known format --- validate/launcher/baseclasses.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/validate/launcher/baseclasses.py b/validate/launcher/baseclasses.py index 53730bc997..28eae082e7 100644 --- a/validate/launcher/baseclasses.py +++ b/validate/launcher/baseclasses.py @@ -1730,8 +1730,7 @@ class GstValidateMediaDescriptor(MediaDescriptor): class MediaFormatCombination(object): - FORMATS = { # Audio - "aac": "audio/mpeg,mpegversion=4", + FORMATS = {"aac": "audio/mpeg,mpegversion=4", # Audio "ac3": "audio/x-ac3", "vorbis": "audio/x-vorbis", "mp3": "audio/mpeg,mpegversion=1,layer=3", @@ -1745,14 +1744,14 @@ class MediaFormatCombination(object): "vp9": "video/x-vp9", "theora": "video/x-theora", "prores": "video/x-prores", + "jpeg": "image/jpeg", # Containers "webm": "video/webm", "ogg": "application/ogg", "mkv": "video/x-matroska", "mp4": "video/quicktime,variant=iso;", - "quicktime": "video/quicktime;", - } + "quicktime": "video/quicktime;"} def __str__(self): return "%s and %s in %s" % (self.audio, self.video, self.container)