Merge commit 'db9aee6ccf'
* commit 'db9aee6ccf':
oma: properly forward errors in oma_read_packet
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
f302ba4dda
1 changed files with 4 additions and 2 deletions
|
|
@ -400,8 +400,10 @@ static int oma_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||
int packet_size = s->streams[0]->codec->block_align;
|
||||
int ret = av_get_packet(s->pb, pkt, packet_size);
|
||||
|
||||
if (ret <= 0)
|
||||
return AVERROR(EIO);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
if (!ret)
|
||||
return AVERROR_EOF;
|
||||
|
||||
pkt->stream_index = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue