diff options
author | Anshul Maheshwari <anshul.ffmpeg@gmail.com> | 2014-06-14 17:06:37 +0530 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-15 19:56:09 +0200 |
commit | 9a11b33a2d9db18cd9f606952e2d1acb72f883aa (patch) | |
tree | 2de8ecbf7f852198d97b069b8ddb5ba25a2d4864 | |
parent | 153b5fb2fdef712434259218eefbbd704545b9b7 (diff) | |
download | ffmpeg-streaming-9a11b33a2d9db18cd9f606952e2d1acb72f883aa.zip ffmpeg-streaming-9a11b33a2d9db18cd9f606952e2d1acb72f883aa.tar.gz |
avcodec/dvbsubdec: restructure version check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/dvbsubdec.c | 5 |
1 files 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); } - } } |