[FFmpeg-cvslog] lavc/ccaption_dec: simplify rollup cases

Clément Bœsch git at videolan.org
Sat Jan 9 12:45:10 CET 2016


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Jan  9 12:44:10 2016 +0100| [0948e0f553c02a5b06003b07e80357f7f206d3ef] | committer: Clément Bœsch

lavc/ccaption_dec: simplify rollup cases

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0948e0f553c02a5b06003b07e80357f7f206d3ef
---

 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 da7fb37..fc6431b 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:



More information about the ffmpeg-cvslog mailing list