[FFmpeg-cvslog] lavc/ccaption_dec: centralize buffer_changed=1 into reap_screen
Aman Gupta
git at videolan.org
Sat Jan 9 12:33:36 CET 2016
ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Fri Jan 8 17:53:20 2016 -0800| [7def844be81beeab5b48260433f1d7ca448b3a16] | committer: Clément Bœsch
lavc/ccaption_dec: centralize buffer_changed=1 into reap_screen
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7def844be81beeab5b48260433f1d7ca448b3a16
---
libavcodec/ccaption_dec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index 01576b1..92c3468 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -302,6 +302,7 @@ static int reap_screen(CCaptionSubContext *ctx, int64_t pts)
ctx->buffer.len -= 2;
ctx->buffer.str[ctx->buffer.len] = 0;
}
+ ctx->buffer_changed = 1;
ctx->startv_time = pts;
ctx->end_time = pts;
return ret;
@@ -365,7 +366,6 @@ static void handle_edm(CCaptionSubContext *ctx, int64_t pts)
reap_screen(ctx, pts);
screen->row_used = 0;
- ctx->buffer_changed = 1;
}
static void handle_eoc(CCaptionSubContext *ctx, int64_t pts)
@@ -458,7 +458,6 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint
ff_dlog(ctx, "carriage return\n");
reap_screen(ctx, pts);
roll_up(ctx);
- ctx->buffer_changed = 1;
ctx->cursor_column = 0;
break;
case 0x2f:
More information about the ffmpeg-cvslog
mailing list