Commit f302ba4d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'db9aee6c'

* commit 'db9aee6c':
  oma: properly forward errors in oma_read_packet
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d13bc208 db9aee6c
......@@ -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;
......
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