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
This commit is contained in:
Sebastian Dröge 2013-08-20 13:29:14 +02:00
parent ce81c4eb48
commit 32a65dc5f3

View file

@ -817,17 +817,21 @@ gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse)
case 2: case 2:
level = levels[0]; level = levels[0];
case 5: case 5:
level = levels[2]; if (!level)
level = levels[2];
profile = "4:2:2"; profile = "4:2:2";
break; break;
case 10: case 10:
level = levels[0]; level = levels[0];
case 11: case 11:
level = levels[1]; if (!level)
level = levels[1];
case 13: case 13:
level = levels[2]; if (!level)
level = levels[2];
case 14: case 14:
level = levels[3]; if (!level)
level = levels[3];
profile = "multiview"; profile = "multiview";
break; break;
default: default: