I am using ffmpeg to decode mp4 format video.
After calling avcodec_decode_video2 function, I got a decoded frame in AVPixelFormat.AV_PIX_FMT_YUV420P.
Is there a ffmpeg function that can convert the decoded frame into a jpeg file? I need to get the byte stream of the decoded jpeg images.