dvbsubdec: add missing break

Message ID 20141111120507.99BF45DC05@aruru.libav.org
State New
Headers show

Commit Message

Janne Grunau Nov. 11, 2014, 12:05 p.m.
Module: libav
Branch: master
Commit: 1bdd21d97528d870fbb4388e837abaf390f2f7d7

Author:    Jernej Fijačko <jernej@jernej.org>
Committer: Vittorio Giovara <vittorio.giovara@gmail.com>
Date:      Sun Nov  9 08:48:46 2014 +0100

dvbsubdec: add missing break

Fix a memory leak too.

CC: libav-stable@libav.org
Bug-Id: CID 732230

---

 libavcodec/dvbsubdec.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index 1dcefae..a4586ad 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -1444,6 +1444,7 @@  static int dvbsub_decode(AVCodecContext *avctx,
                 break;
             case DVBSUB_DISPLAYDEFINITION_SEGMENT:
                 dvbsub_parse_display_definition_segment(avctx, p, segment_length);
+                break;
             case DVBSUB_DISPLAY_SEGMENT:
                 *data_size = dvbsub_display_end_segment(avctx, p, segment_length, sub);
                 break;