History

avcodec/osq: do not return immediately on fatal error

Paul B Mahol committed 3 years ago

Commit ea063171 parent 33b26461 file · +3 −1Browse files

Unified · Split

libavcodec/osq.c+3−1
@@ -411,8 +411,10 @@ static int osq_receive_frame(AVCodecContext *avctx, AVFrame *frame) · 410 unmodified lines
411411 ret = ff_decode_get_packet(avctx, s->pkt);
412412 if (ret == AVERROR_EOF && s->bitstream_size > 0)
413413 break;
414− if (ret < 0)
414+ if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN))
415415 return ret;
416+ if (ret < 0)
417+ goto fail;
416418 }
417419
418420 size = FFMIN(s->pkt->size - s->pkt_offset, s->max_framesize - s->bitstream_size);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t