Commit 20044cd9 authored by Reimar Döffinger's avatar Reimar Döffinger

flvdec: pass on proper error value.

Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent 8f63f241
...@@ -653,9 +653,8 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -653,9 +653,8 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
} }
ret= av_get_packet(s->pb, pkt, size); ret= av_get_packet(s->pb, pkt, size);
if (ret < 0) { if (ret < 0)
return AVERROR(EIO); return ret;
}
pkt->dts = dts; pkt->dts = dts;
pkt->pts = pts == AV_NOPTS_VALUE ? dts : pts; pkt->pts = pts == AV_NOPTS_VALUE ? dts : pts;
pkt->stream_index = st->index; pkt->stream_index = st->index;
......
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