diff options
author | Clément Bœsch <u@pkh.me> | 2016-02-20 23:27:45 +0300 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2016-02-26 23:53:32 +0300 |
commit | 30e76853608f150450fac2497179159a6d556e12 (patch) | |
tree | a7a176d5d1af94e7a95e3609e0fe17172170c370 /libavcodec/ass.c | |
parent | 29412821241050c846dbceaad4b9752857659977 (diff) |
lavc/options: add ass_ro_flush_noop to flags2
Diffstat (limited to 'libavcodec/ass.c')
-rw-r--r-- | libavcodec/ass.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ass.c b/libavcodec/ass.c index da0ee18091..b4f081c819 100644 --- a/libavcodec/ass.c +++ b/libavcodec/ass.c @@ -124,7 +124,8 @@ int ff_ass_add_rect(AVSubtitle *sub, const char *dialog, void ff_ass_decoder_flush(AVCodecContext *avctx) { FFASSDecoderContext *s = avctx->priv_data; - s->readorder = 0; + if (!(avctx->flags2 & AV_CODEC_FLAG2_RO_FLUSH_NOOP)) + s->readorder = 0; } void ff_ass_bprint_text_event(AVBPrint *buf, const char *p, int size, |