summaryrefslogtreecommitdiff
path: root/libavcodec/ccaption_dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-01-19 13:11:37 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-19 13:48:21 +0100
commit22f64c23244f4b83f59b866387ebeb8edca21b0d (patch)
tree6e664b0d1b02d690e34ee64f68244bf9e98e4d27 /libavcodec/ccaption_dec.c
parentd6b3062b5a6ae8bd845ed673c38546ec593f719a (diff)
downloadffmpeg-22f64c23244f4b83f59b866387ebeb8edca21b0d.tar.gz
avcodec/ccaption_dec: Fix mixed declarations and code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ccaption_dec.c')
-rw-r--r--libavcodec/ccaption_dec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index 330ea6ac59..790f0718fd 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -625,13 +625,14 @@ static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avp
if (ctx->real_time && ctx->screen_touched &&
avpkt->pts > ctx->last_real_time + av_rescale_q(20, ass_tb, avctx->time_base)) {
+ int start_time;
ctx->last_real_time = avpkt->pts;
ctx->screen_touched = 0;
capture_screen(ctx);
ctx->buffer_changed = 0;
- int start_time = av_rescale_q(avpkt->pts, avctx->time_base, ass_tb);
+ start_time = av_rescale_q(avpkt->pts, avctx->time_base, ass_tb);
ret = ff_ass_add_rect_bprint(sub, &ctx->buffer, start_time, -1);
if (ret < 0)
return ret;