[PATCH 03/12] Make audio_read_packet() return AVERROR_EOF rather than AVERROR(EOF) = AVERROR(-1) = 1.
Stefano Sabatini
stefano.sabatini-lala
Tue Mar 16 23:05:40 CET 2010
---
libavdevice/oss_audio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavdevice/oss_audio.c b/libavdevice/oss_audio.c
index c1b244a..8e4dbf2 100644
--- a/libavdevice/oss_audio.c
+++ b/libavdevice/oss_audio.c
@@ -256,7 +256,7 @@ static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
av_free_packet(pkt);
pkt->size = 0;
if (ret<0) return AVERROR(errno);
- else return AVERROR(EOF);
+ else return AVERROR_EOF;
}
pkt->size = ret;
--
1.6.6.1
--8NvZYKFJsRX2Djef--
More information about the ffmpeg-devel
mailing list