aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/idroqdec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-03-27 09:47:39 +0200
committerAnton Khirnov <anton@khirnov.net>2023-03-27 17:14:31 +0200
commit3f4c41839d5d3d02a12cc6a7407e6586996040e7 (patch)
tree14a864a666a251d15a842f3d4d3c05591e69e56c /libavformat/idroqdec.c
parent2e61ae2cbe5e046d38f2592e2ccc5944520c3430 (diff)
downloadffmpeg-3f4c41839d5d3d02a12cc6a7407e6586996040e7.tar.gz
lavf: return AVERROR_EOF rather than EIO on EOF
Diffstat (limited to 'libavformat/idroqdec.c')
-rw-r--r--libavformat/idroqdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/idroqdec.c b/libavformat/idroqdec.c
index c9fc972780..01ea2bb77b 100644
--- a/libavformat/idroqdec.c
+++ b/libavformat/idroqdec.c
@@ -107,7 +107,7 @@ static int roq_read_packet(AVFormatContext *s,
while (!packet_read) {
if (avio_feof(s->pb))
- return AVERROR(EIO);
+ return AVERROR_EOF;
/* get the next chunk preamble */
if ((ret = avio_read(pb, preamble, RoQ_CHUNK_PREAMBLE_SIZE)) !=