diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-03-27 09:47:39 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-03-27 17:14:31 +0200 |
commit | 3f4c41839d5d3d02a12cc6a7407e6586996040e7 (patch) | |
tree | 14a864a666a251d15a842f3d4d3c05591e69e56c /libavformat/sol.c | |
parent | 2e61ae2cbe5e046d38f2592e2ccc5944520c3430 (diff) | |
download | ffmpeg-3f4c41839d5d3d02a12cc6a7407e6586996040e7.tar.gz |
lavf: return AVERROR_EOF rather than EIO on EOF
Diffstat (limited to 'libavformat/sol.c')
-rw-r--r-- | libavformat/sol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/sol.c b/libavformat/sol.c index b92cfb36fe..a276642728 100644 --- a/libavformat/sol.c +++ b/libavformat/sol.c @@ -127,7 +127,8 @@ static int sol_read_packet(AVFormatContext *s, int ret; if (avio_feof(s->pb)) - return AVERROR(EIO); + return AVERROR_EOF; + ret= av_get_packet(s->pb, pkt, MAX_SIZE); if (ret < 0) return ret; |