[FFmpeg-cvslog] dvbsubdec: handle mode change page state

JULIAN GARDNER git at videolan.org
Fri Oct 14 20:29:02 CEST 2011


ffmpeg | branch: master | JULIAN GARDNER <joolzg at btinternet.com> | Fri Oct 14 16:33:34 2011 +0200| [1fc7b0ed5aecf3a4e913296b41ce266dc62ac3af] | committer: Michael Niedermayer

dvbsubdec: handle mode change page state

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/dvbsubdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index 2e9ef12..25552be 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -1136,7 +1136,7 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx,
 
     av_dlog(avctx, "Page time out %ds, state %d\n", ctx->time_out, page_state);
 
-    if (page_state == 2) {
+    if (page_state == 1 || page_state == 2) {
         delete_regions(ctx);
         delete_objects(ctx);
         delete_cluts(ctx);



More information about the ffmpeg-cvslog mailing list