summaryrefslogtreecommitdiffstats
path: root/libavcodec/textdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/textdec.c')
-rw-r--r--libavcodec/textdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/textdec.c b/libavcodec/textdec.c
index 4e2ff2c..964da72 100644
--- a/libavcodec/textdec.c
+++ b/libavcodec/textdec.c
@@ -66,7 +66,8 @@ static int text_decode_frame(AVCodecContext *avctx, void *data,
static void text_flush(AVCodecContext *avctx)
{
TextContext *text = avctx->priv_data;
- text->readorder = 0;
+ if (!(avctx->flags2 & AV_CODEC_FLAG2_RO_FLUSH_NOOP))
+ text->readorder = 0;
}
#define DECLARE_CLASS(decname) static const AVClass decname ## _decoder_class = { \
OpenPOWER on IntegriCloud