[SCM] libav/experimental: Make audio_read_packet() return AVERROR_EOF rather than AVERROR(EOF) = AVERROR(-1) = 1.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:05:09 UTC 2013
The following commit has been merged in the experimental branch:
commit bd01c39330280313eebab7594168cae6180a6aef
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date: Thu Mar 25 00:41:54 2010 +0000
Make audio_read_packet() return AVERROR_EOF rather than AVERROR(EOF) =
AVERROR(-1) = 1.
Originally committed as revision 22664 to svn://svn.ffmpeg.org/ffmpeg/trunk
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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list