[FFmpeg-cvslog] avcodec/dvbsubdec: restructure version check

Anshul Maheshwari git at videolan.org
Sun Jun 15 20:42:53 CEST 2014


ffmpeg | branch: master | Anshul Maheshwari <anshul.ffmpeg at gmail.com> | Sat Jun 14 17:24:37 2014 +0530| [9a11b33a2d9db18cd9f606952e2d1acb72f883aa] | committer: Michael Niedermayer

avcodec/dvbsubdec: restructure version check

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

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

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

diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index 1809e9d..3c4ccb8 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -1167,7 +1167,9 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx,
     version = ((*buf)>>4) & 15;
     page_state = ((*buf++) >> 2) & 3;
 
-    if (ctx->version != version) {
+    if (ctx->version == version) {
+        return;
+    }
 
     ctx->time_out = timeout;
     ctx->version = version;
@@ -1220,7 +1222,6 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx,
 
         av_free(display);
     }
-    }
 
 }
 



More information about the ffmpeg-cvslog mailing list