From 0948e0f553c02a5b06003b07e80357f7f206d3ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sat, 9 Jan 2016 12:44:10 +0100 Subject: [PATCH] lavc/ccaption_dec: simplify rollup cases --- libavcodec/ccaption_dec.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index da7fb37671..fc6431b51a 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -459,15 +459,9 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint handle_delete_end_of_row(ctx, hi, lo); break; case 0x25: - ctx->rollup = 2; - ctx->mode = CCMODE_ROLLUP; - break; case 0x26: - ctx->rollup = 3; - ctx->mode = CCMODE_ROLLUP; - break; case 0x27: - ctx->rollup = 4; + ctx->rollup = lo - 0x23; ctx->mode = CCMODE_ROLLUP; break; case 0x29: