You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I meet a problem while calling avcodec_receive_packet to encode png bytes into H264, it returns AVERROR(EAGAIN) in the first 10s, from the comment, it mentions that: 0 on success, otherwise negative error code: AVERROR(EAGAIN): output is not available in the current state - user must try to send input AVERROR_EOF: the encoder has been fully flushed, and there will be no more output packets AVERROR(EINVAL): codec not opened, or it is a decoder other errors: legitimate encoding errors
I want to know how to clear the buffer while returning errors. How to send AVERROR_EOF?
The text was updated successfully, but these errors were encountered:
I meet a problem while calling avcodec_receive_packet to encode png bytes into H264, it returns AVERROR(EAGAIN) in the first 10s, from the comment, it mentions that:
0 on success, otherwise negative error code: AVERROR(EAGAIN): output is not available in the current state - user must try to send input AVERROR_EOF: the encoder has been fully flushed, and there will be no more output packets AVERROR(EINVAL): codec not opened, or it is a decoder other errors: legitimate encoding errors
I want to know how to clear the buffer while returning errors. How to send AVERROR_EOF?
The text was updated successfully, but these errors were encountered: