mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +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:
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue