Signed-off-by: Paul B Mahol <[email protected]>
---
libavformat/nutdec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 056ef59d00..1d1c449bbd 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -1080,6 +1080,10 @@ static int decode_frame(NUTContext *nut, AVPacket *pkt,
int frame_code)
stc = &nut->stream[stream_id];
+ if (stc->last_flags & FLAG_EOR &&
+ s->streams[stream_id]->codecpar->codec_type != AVMEDIA_TYPE_SUBTITLE)
+ return 1;
+
if (stc->last_flags & FLAG_KEY)
stc->skip_until_key_frame = 0;
--
2.17.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel