avcodec/dvbsubdec: restructure version check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:

committed by
Michael Niedermayer

parent
153b5fb2fd
commit
9a11b33a2d
@@ -1167,7 +1167,9 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx,
|
|||||||
version = ((*buf)>>4) & 15;
|
version = ((*buf)>>4) & 15;
|
||||||
page_state = ((*buf++) >> 2) & 3;
|
page_state = ((*buf++) >> 2) & 3;
|
||||||
|
|
||||||
if (ctx->version != version) {
|
if (ctx->version == version) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ctx->time_out = timeout;
|
ctx->time_out = timeout;
|
||||||
ctx->version = version;
|
ctx->version = version;
|
||||||
@@ -1220,7 +1222,6 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx,
|
|||||||
|
|
||||||
av_free(display);
|
av_free(display);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user