summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2013-08-20 13:29:14 +0200
committerTim-Philipp Müller <tim@centricular.net>2013-08-28 22:47:17 +0100
commitd5471803f950ea0e8e99444048c5759b10bb0e91 (patch)
tree2f0c21874dfe7ddae6d165c96076240c1e6ae10b
parent25521d48188ebf09832b697ede5810cdb24c31c3 (diff)
downloadgstreamer-plugins-bad-d5471803f950ea0e8e99444048c5759b10bb0e91.tar.gz
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 1e5390e32..906770022 100644
--- a/gst/videoparsers/gstmpegvideoparse.c
+++ b/gst/videoparsers/gstmpegvideoparse.c
@@ -713,17 +713,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: