Commit 9a11b33a authored by Anshul Maheshwari's avatar Anshul Maheshwari Committed by Michael Niedermayer

avcodec/dvbsubdec: restructure version check

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 153b5fb2
......@@ -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);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment