Commit 0ec89045 authored by stefano's avatar stefano

Make audio_read_packet() return AVERROR_EOF rather than AVERROR(EOF) =

AVERROR(-1) = 1.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22664 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4e30dba6
...@@ -256,7 +256,7 @@ static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt) ...@@ -256,7 +256,7 @@ static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
av_free_packet(pkt); av_free_packet(pkt);
pkt->size = 0; pkt->size = 0;
if (ret<0) return AVERROR(errno); if (ret<0) return AVERROR(errno);
else return AVERROR(EOF); else return AVERROR_EOF;
} }
pkt->size = ret; pkt->size = ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment