<HTML><BODY><div>Hello.</div><div> </div><div>I am performing circular recording on a MJPEG flash drive of frames from a v4l2 camera. I read through av_read_frame(pFmtCtxInp, pPck) and write fwrite(pPck->data, 1, pPck->size, pf)</div><div> </div><div>Now I want to read and send via rtp using ffmpeg.</div><div>Tell me, is there a standard way in ffmpeg to re-fill the AVPacket structure from the buffer I read, or is it enough to assign initialize the data and size fields???</div><div> </div><div>Thanks for any help.</div></BODY></HTML>