<div dir="ltr">Hi<div>I have tried to use the new API</div><div>I can get decoded frame, but there is a problem wit the dts, this is a log that print the pts, pkt_pts and pkt_dts of the decoded frame:</div><div><br></div><div><div>2017-01-23 11:55:25.718 [  TRACE]:transcode: 0001: Decoder: available output frame 0(ts 6, length 0), pts 18000, pkt_pts 180</div><div>00, pkt_dts 9223372036854775808</div></div><div><br></div><div>the pts 18000 is correct, but the dts is completely wrong and it is the same (wrong) for all the following decoded frame. Still the returned lenght from the avcodec_receive_frame is 0. I suspect that some field may be missing in the AVContex, I set width, height and framerate</div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-11 23:45 GMT+01:00 Blake Senftner <span dir="ltr"><<a href="mailto:bsenftner@earthlink.net" target="_blank">bsenftner@earthlink.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In general, developer attention is on new APIs, because people like you are updating to them. Any bugs you encounter may be fixed in the more recent code, and any undiscovered bugs you find would only be fixed in the new APIs anyway. It is not time consuming to update; I updated a player library in about 3 hours. Just follow the depreciated warnings when compiling, and in the header declarations of depreciated functions it explains the new API replacing the one you are using.<br>
<br>
Sincerely,<br>
-Blake Senftner<br>
<span class="gmail-m_5937273369662722849im gmail-m_5937273369662722849HOEnZb"><br>
> On Jan 11, 2017, at 2:15 PM, Menion <<a href="mailto:menion@gmail.com" target="_blank">menion@gmail.com</a>> wrote:<br>
><br>
> The reason is that this is what I have found in the current code (not made by me). If you believe the deprecated api could be buggy with modern codec, I will refactor the code and check if it works better.<br>
<br>
</span><div class="gmail-m_5937273369662722849HOEnZb"><div class="gmail-m_5937273369662722849h5">______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/list<wbr>info/libav-user</a><br>
</div></div></blockquote></div><br></div></div>