Browse Source

avcodec/dvbsubdec: restructure version check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Anshul Maheshwari Michael Niedermayer 11 years ago
parent
commit
9a11b33a2d
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavcodec/dvbsubdec.c

+ 3
- 2
libavcodec/dvbsubdec.c View File

@@ -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);
}
}

}



Loading…
Cancel
Save