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,16 +817,20 @@ gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse)
|
|||
case 2:
|
||||
level = levels[0];
|
||||
case 5:
|
||||
if (!level)
|
||||
level = levels[2];
|
||||
profile = "4:2:2";
|
||||
break;
|
||||
case 10:
|
||||
level = levels[0];
|
||||
case 11:
|
||||
if (!level)
|
||||
level = levels[1];
|
||||
case 13:
|
||||
if (!level)
|
||||
level = levels[2];
|
||||
case 14:
|
||||
if (!level)
|
||||
level = levels[3];
|
||||
profile = "multiview";
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue