diff options
Diffstat (limited to 'libavcodec/samidec.c')
-rw-r--r-- | libavcodec/samidec.c | 3 |
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 = { |