av_register_all and avcodec_register_all are needed for Ubuntu 18.04 (not sure exactly why).
Also, we need to change the decode loop for the send/receive API (see libav documentation). Receiving AVERROR(EAGAIN) from avcodec_receive_frame just means we need to send more input.
av_register_all
andavcodec_register_all
are needed for Ubuntu 18.04 (not sure exactly why).Also, we need to change the decode loop for the send/receive API (see libav documentation). Receiving
AVERROR(EAGAIN)
fromavcodec_receive_frame
just means we need to send more input.