mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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:
parent
ce81c4eb48
commit
32a65dc5f3
1 changed files with 8 additions and 4 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue