summaryrefslogtreecommitdiff
path: root/libavcodec/ccaption_dec.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2016-02-20 21:27:45 +0100
committerClément Bœsch <u@pkh.me>2016-02-26 21:53:32 +0100
commit30e76853608f150450fac2497179159a6d556e12 (patch)
treea7a176d5d1af94e7a95e3609e0fe17172170c370 /libavcodec/ccaption_dec.c
parent29412821241050c846dbceaad4b9752857659977 (diff)
lavc/options: add ass_ro_flush_noop to flags2
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 44c3b987e1..d3f32ddde9 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -307,7 +307,8 @@ static void flush_decoder(AVCodecContext *avctx)
ctx->last_real_time = 0;
ctx->screen_touched = 0;
ctx->buffer_changed = 0;
- ctx->readorder = 0;
+ if (!(avctx->flags2 & AV_CODEC_FLAG2_RO_FLUSH_NOOP))
+ ctx->readorder = 0;
av_bprint_clear(&ctx->buffer);
}