mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 00:51:37 +00:00
Do not invent error codes but pass the error code on.
Originally committed as revision 20630 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
fed0c2fb71
commit
d3298350bb
@ -248,8 +248,8 @@ static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
|
||||
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){
|
||||
|
Loading…
Reference in New Issue
Block a user