validate: Add jpeg as known format

This commit is contained in:
Thibault Saunier 2016-07-29 15:52:48 -04:00
parent 1de54fcd09
commit 5a745829dc

View file

@ -1730,8 +1730,7 @@ class GstValidateMediaDescriptor(MediaDescriptor):
class MediaFormatCombination(object): class MediaFormatCombination(object):
FORMATS = { # Audio FORMATS = {"aac": "audio/mpeg,mpegversion=4", # Audio
"aac": "audio/mpeg,mpegversion=4",
"ac3": "audio/x-ac3", "ac3": "audio/x-ac3",
"vorbis": "audio/x-vorbis", "vorbis": "audio/x-vorbis",
"mp3": "audio/mpeg,mpegversion=1,layer=3", "mp3": "audio/mpeg,mpegversion=1,layer=3",
@ -1745,14 +1744,14 @@ class MediaFormatCombination(object):
"vp9": "video/x-vp9", "vp9": "video/x-vp9",
"theora": "video/x-theora", "theora": "video/x-theora",
"prores": "video/x-prores", "prores": "video/x-prores",
"jpeg": "image/jpeg",
# Containers # Containers
"webm": "video/webm", "webm": "video/webm",
"ogg": "application/ogg", "ogg": "application/ogg",
"mkv": "video/x-matroska", "mkv": "video/x-matroska",
"mp4": "video/quicktime,variant=iso;", "mp4": "video/quicktime,variant=iso;",
"quicktime": "video/quicktime;", "quicktime": "video/quicktime;"}
}
def __str__(self): def __str__(self):
return "%s and %s in %s" % (self.audio, self.video, self.container) return "%s and %s in %s" % (self.audio, self.video, self.container)