aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp b/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp
index 21830daf5..2f0cce082 100644
--- a/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp
+++ b/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp
@@ -35,6 +35,10 @@ extern "C"{
static int ffmpeg_read(void *data, uint8_t *buf, int size)
{
DecoderFFmpeg *d = (DecoderFFmpeg*)data;
+#if (LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57,84,101))
+ if(d->input()->atEnd())
+ return AVERROR_EOF;
+#endif
return (int)d->input()->read((char*)buf, size);
}