<div dir="ltr"><div dir="ltr">On Mon, 16 Aug 2021 at 14:57, Nicolas George <<a href="mailto:george@nsup.org">george@nsup.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You must check the return code of all the functions that can fail. If<br>
you do not, your code is obviously invalid. Start by fixing that before<br>
asking for more help.<br>
<br></blockquote><div><br></div><div>I told you I did and avcodec_send_frame() is the one that throws that error.</div><div><br></div><div>It would be useful a document in the documentation explaining how to fix those</div><div>errors. I have allocated the frame so ffmpeg should set the linesize by itself but</div><div>in my case it doesn't. Why?</div></div></div>