summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2016-01-09 12:44:10 +0100
committerClément Bœsch <u@pkh.me>2016-01-09 12:44:10 +0100
commit0948e0f553c02a5b06003b07e80357f7f206d3ef (patch)
treee816953e00aa9ed059e80b9bb6b03361a8755ab8 /libavcodec
parent22765140fa676041a786e5973b11199badfa367c (diff)
lavc/ccaption_dec: simplify rollup cases
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ccaption_dec.c8
1 files changed, 1 insertions, 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: