[FFmpeg-cvslog] dvbsubdec: add missing break

Jernej Fijačko git at videolan.org
Tue Nov 11 22:06:54 CET 2014


ffmpeg | branch: master | Jernej Fijačko <jernej at jernej.org> | Sun Nov  9 08:48:46 2014 +0100| [1bdd21d97528d870fbb4388e837abaf390f2f7d7] | committer: Vittorio Giovara

dvbsubdec: add missing break

Fix a memory leak too.

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1bdd21d97528d870fbb4388e837abaf390f2f7d7
---

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

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;



More information about the ffmpeg-cvslog mailing list