mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/osq: do not return immediately on fatal error
This commit is contained in:
parent
33b2646d61
commit
ea06317190
@ -411,8 +411,10 @@ static int osq_receive_frame(AVCodecContext *avctx, AVFrame *frame)
|
|||||||
ret = ff_decode_get_packet(avctx, s->pkt);
|
ret = ff_decode_get_packet(avctx, s->pkt);
|
||||||
if (ret == AVERROR_EOF && s->bitstream_size > 0)
|
if (ret == AVERROR_EOF && s->bitstream_size > 0)
|
||||||
break;
|
break;
|
||||||
if (ret < 0)
|
if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN))
|
||||||
return ret;
|
return ret;
|
||||||
|
if (ret < 0)
|
||||||
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = FFMIN(s->pkt->size - s->pkt_offset, s->max_framesize - s->bitstream_size);
|
size = FFMIN(s->pkt->size - s->pkt_offset, s->max_framesize - s->bitstream_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user