[FFmpeg-cvslog] r20630 - trunk/libavdevice/oss_audio.c
michael
subversion
Fri Nov 27 14:48:37 CET 2009
Author: michael
Date: Fri Nov 27 14:48:37 2009
New Revision: 20630
Log:
Do not invent error codes but pass the error code on.
Modified:
trunk/libavdevice/oss_audio.c
Modified: trunk/libavdevice/oss_audio.c
==============================================================================
--- trunk/libavdevice/oss_audio.c Fri Nov 27 14:37:53 2009 (r20629)
+++ trunk/libavdevice/oss_audio.c Fri Nov 27 14:48:37 2009 (r20630)
@@ -248,8 +248,8 @@ static int audio_read_packet(AVFormatCon
int64_t cur_time;
struct audio_buf_info abufi;
- if (av_new_packet(pkt, s->frame_size) < 0)
- return AVERROR(EIO);
+ if ((ret=av_new_packet(pkt, s->frame_size)) < 0)
+ return ret;
ret = read(s->fd, pkt->data, pkt->size);
if (ret <= 0){
More information about the ffmpeg-cvslog
mailing list