<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div>Hello,</div>    Here's a question. Sometimes when my code goes to "<b style="">ret = avcodec_send_frame(enc_ctx, tmpFrame);</b>", the value of <b>ret</b> is <b>AVERROR(EINVAL)</b>. And it shows "<b>Input contains (near) NaN/+-Inf</b>".<div><img src="cid:89A069DF@F0487A68.A1C6F55F.png" style="" id="img_insert_160994200032308867090504608737"><div>    Then I print the information of <span style="font-weight: bold;">tmpFrame</span>. Usually, the reason of this bug is that the format of <span style="font-weight: bold;">tmpFrame</span> is not <span style="font-weight: bold;">AV_SAMPLE_FMT_FLTP</span>. But as it shows in the picture followed, the format is 8, which is the value of <span style="font-weight: bold;">AV_SAMPLE_FMT_FLTP</span>. So are there any other reasons causing this bug?</div><img src="cid:BF343429@8FE61356.A1C6F55F.png" style="width: 1150px; height: 21px;" id="img_insert_160994208436506071070593171506" modifysize="72%" diffpixels="15px" scalingmode="zoom"><br></div><div>    Sorry to bother you. Thanks for your help.</div>