From 30e76853608f150450fac2497179159a6d556e12 Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Sat, 20 Feb 2016 21:27:45 +0100 Subject: lavc/options: add ass_ro_flush_noop to flags2 --- libavcodec/movtextdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/movtextdec.c') diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c index fa70497439..abf8711a9c 100644 --- a/libavcodec/movtextdec.c +++ b/libavcodec/movtextdec.c @@ -518,7 +518,8 @@ static int mov_text_decode_close(AVCodecContext *avctx) static void mov_text_flush(AVCodecContext *avctx) { MovTextContext *m = avctx->priv_data; - m->readorder = 0; + if (!(avctx->flags2 & AV_CODEC_FLAG2_RO_FLUSH_NOOP)) + m->readorder = 0; } AVCodec ff_movtext_decoder = { -- cgit v1.2.3