avcodec/dvbsubdec: restructure version check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Anshul Maheshwari 2014-06-14 17:06:37 +05:30 committed by Michael Niedermayer
parent 153b5fb2fd
commit 9a11b33a2d

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