mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/dvbsubdec: restructure version check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
153b5fb2fd
commit
9a11b33a2d
@ -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…
Reference in New Issue
Block a user