[0.11] gst-plugins-bad: mpegvideoparse: prevent some fall-through cases

Sebastian Dröge slomo at kemper.freedesktop.org
Wed Jan 25 04:24:00 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: c63be1402a532c9e7c7c7aa9b83a1716793d2dd1
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=c63be1402a532c9e7c7c7aa9b83a1716793d2dd1

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Mon Jan 23 13:58:57 2012 +0100

mpegvideoparse: prevent some fall-through cases

---

 gst/mpegvideoparse/mpegvideoparse.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gst/mpegvideoparse/mpegvideoparse.c b/gst/mpegvideoparse/mpegvideoparse.c
index c91ed07..cc3639c 100644
--- a/gst/mpegvideoparse/mpegvideoparse.c
+++ b/gst/mpegvideoparse/mpegvideoparse.c
@@ -293,16 +293,20 @@ mpegvideoparse_handle_sequence (MpegVideoParse * mpegvideoparse,
         switch (new_hdr.level) {
           case 2:
             level = levels[0];
+            break;
           case 5:
             level = levels[2];
             profile = "4:2:2";
             break;
           case 10:
             level = levels[0];
+            break;
           case 11:
             level = levels[1];
+            break;
           case 13:
             level = levels[2];
+            break;
           case 14:
             level = levels[3];
             profile = "multiview";



More information about the gstreamer-commits mailing list