mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
Merge commit 'db9aee6ccf183508835acc325f5ad87d595eacc4'
* commit 'db9aee6ccf183508835acc325f5ad87d595eacc4': oma: properly forward errors in oma_read_packet Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
f302ba4dda
@ -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…
Reference in New Issue
Block a user