From: Aman Gupta <a...@tmm1.net> --- libavcodec/ccaption_dec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index 6dff761..706da16 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -158,7 +158,7 @@ typedef struct CCaptionSubContext { uint8_t cursor_color; uint8_t cursor_font; AVBPrint buffer; - int screen_changed; + int screen_reaped; int rollup; enum cc_mode mode; char *prev_string; @@ -202,7 +202,7 @@ static void flush_decoder(AVCodecContext *avctx) ctx->screen[0].row_used = 0; ctx->screen[1].row_used = 0; av_bprint_clear(&ctx->buffer); - ctx->screen_changed = 1; + ctx->screen_reaped = 1; ctx->mode = CCMODE_POPON; } @@ -342,9 +342,9 @@ static int reap_screen(CCaptionSubContext *ctx) if (screen->row_used && ctx->buffer.len >= 2) { ctx->buffer.len -= 2; ctx->buffer.str[ctx->buffer.len] = 0; - ctx->screen_changed = 1; } + ctx->screen_reaped = 1; return ret; } @@ -553,9 +553,9 @@ static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avp else process_cc608(ctx, *(bptr + i + 1) & 0x7f, *(bptr + i + 2) & 0x7f); - if (!ctx->screen_changed) + if (!ctx->screen_reaped) continue; - ctx->screen_changed = 0; + ctx->screen_reaped = 0; if (ctx->calculate_duration) { if (ctx->prev_string) { -- 2.5.3 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel