mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
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:
parent
27136b05e0
commit
7a0200bdfa
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue