diff options
author | Clément Bœsch <u@pkh.me> | 2016-01-09 12:44:10 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2016-01-09 12:44:10 +0100 |
commit | 0948e0f553c02a5b06003b07e80357f7f206d3ef (patch) | |
tree | e816953e00aa9ed059e80b9bb6b03361a8755ab8 /libavcodec/ccaption_dec.c | |
parent | 22765140fa676041a786e5973b11199badfa367c (diff) | |
download | ffmpeg-0948e0f553c02a5b06003b07e80357f7f206d3ef.tar.gz |
lavc/ccaption_dec: simplify rollup cases
Diffstat (limited to 'libavcodec/ccaption_dec.c')
-rw-r--r-- | libavcodec/ccaption_dec.c | 8 |
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: |