Commit 49460a81 authored by michael's avatar michael

Do not invent error codes but pass the error code on.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20630 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4d9de08e
...@@ -248,8 +248,8 @@ static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt) ...@@ -248,8 +248,8 @@ static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
int64_t cur_time; int64_t cur_time;
struct audio_buf_info abufi; struct audio_buf_info abufi;
if (av_new_packet(pkt, s->frame_size) < 0) if ((ret=av_new_packet(pkt, s->frame_size)) < 0)
return AVERROR(EIO); return ret;
ret = read(s->fd, pkt->data, pkt->size); ret = read(s->fd, pkt->data, pkt->size);
if (ret <= 0){ if (ret <= 0){
......
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