mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-12-20 02:28:17 +00:00
flvdec: pass on proper error value.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
8f63f241d4
commit
20044cd9a9
@ -653,9 +653,8 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
}
|
||||
|
||||
ret= av_get_packet(s->pb, pkt, size);
|
||||
if (ret < 0) {
|
||||
return AVERROR(EIO);
|
||||
}
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
pkt->dts = dts;
|
||||
pkt->pts = pts == AV_NOPTS_VALUE ? dts : pts;
|
||||
pkt->stream_index = st->index;
|
||||
|
Loading…
Reference in New Issue
Block a user