mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +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,16 +817,20 @@ gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse)
|
||||||
case 2:
|
case 2:
|
||||||
level = levels[0];
|
level = levels[0];
|
||||||
case 5:
|
case 5:
|
||||||
|
if (!level)
|
||||||
level = levels[2];
|
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:
|
||||||
|
if (!level)
|
||||||
level = levels[1];
|
level = levels[1];
|
||||||
case 13:
|
case 13:
|
||||||
|
if (!level)
|
||||||
level = levels[2];
|
level = levels[2];
|
||||||
case 14:
|
case 14:
|
||||||
|
if (!level)
|
||||||
level = levels[3];
|
level = levels[3];
|
||||||
profile = "multiview";
|
profile = "multiview";
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue