aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/samidec.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/samidec.c
parent29412821241050c846dbceaad4b9752857659977 (diff)
downloadffmpeg-30e76853608f150450fac2497179159a6d556e12.tar.gz
lavc/options: add ass_ro_flush_noop to flags2
Diffstat (limited to 'libavcodec/samidec.c')
-rw-r--r--libavcodec/samidec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/samidec.c b/libavcodec/samidec.c
index 2874e216f9..16f3f58c1c 100644
--- a/libavcodec/samidec.c
+++ b/libavcodec/samidec.c
@@ -166,7 +166,8 @@ static av_cold int sami_close(AVCodecContext *avctx)
static void sami_flush(AVCodecContext *avctx)
{
SAMIContext *sami = avctx->priv_data;
- sami->readorder = 0;
+ if (!(avctx->flags2 & AV_CODEC_FLAG2_RO_FLUSH_NOOP))
+ sami->readorder = 0;
}
AVCodec ff_sami_decoder = {