summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2013-08-20 13:29:14 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-08-20 13:30:15 +0200
commit32a65dc5f3e3fec36d542d773092fe336f8d4398 (patch)
tree03ff5da6d1bed3c1ed52bdabde8268ab3a381e67
parentce81c4eb48b546ae78e2caa8ed09860d35ed105e (diff)
mpegvideoparse: Fix switch statement in level detection code
Properly fall through the cases without re-assigning the level to the wrong value. https://bugzilla.gnome.org/show_bug.cgi?id=706369
-rw-r--r--gst/videoparsers/gstmpegvideoparse.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c
index b5a6d01fa..79387f353 100644
--- a/gst/videoparsers/gstmpegvideoparse.c
+++ b/gst/videoparsers/gstmpegvideoparse.c
@@ -817,17 +817,21 @@ gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse)
case 2:
level = levels[0];
case 5:
- level = levels[2];
+ if (!level)
+ level = levels[2];
profile = "4:2:2";
break;
case 10:
level = levels[0];
case 11:
- level = levels[1];
+ if (!level)
+ level = levels[1];
case 13:
- level = levels[2];
+ if (!level)
+ level = levels[2];
case 14:
- level = levels[3];
+ if (!level)
+ level = levels[3];
profile = "multiview";
break;
default: