fixup! lavc/rkmppenc: add RKMPP H264 and HEVC encoder

Don't return EAGAIN in draining/eof to avoid a potential frame loss.

Credit by @mcerveny

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
nyanmisaka 2024-03-10 23:59:00 +08:00
parent 27136b05e0
commit 7a0200bdfa

View file

@ -774,6 +774,8 @@ send:
get:
ret = rkmpp_get_packet(avctx, packet);
if (!frame && ret == AVERROR(EAGAIN))
goto send;
if (ret == AVERROR_EOF ||
ret == AVERROR(EAGAIN))
*got_packet = 0;