<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-15 23:31 GMT+10:00 坚定前行 <span dir="ltr"><<a href="mailto:powerpan@qq.com" target="_blank">powerpan@qq.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div><br></div><div> </div><div><div style="font-size:12px;padding:2px 0">---Original---</div><div style="font-size:12px;background:#f0f0f0;color:#212121;padding:8px!important;border-radius:4px;line-height:1.5"><div><b>From:</b> "YIRAN LI"<<a href="mailto:mrfun.china@gmail.com" target="_blank">mrfun.china@gmail.com</a>></div><div><b>Date:</b> 2017/5/15 21:26:07</div><span class=""><div><b>To:</b> "This list is about using libavcodec, libavformat, libavutil,libavdevice and libavfilter."<<a href="mailto:libav-user@ffmpeg.org" target="_blank">libav-user@<wbr>ffmpeg.org</a>>;</div><div><b>Subject:</b> Re: [Libav-user] What should I do when avcodec_decode_audio4 fails?</div></span></div><br><div dir="ltr"><div style="font-family:georgia,serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">2017-05-15 20:00 GMT+10:00 Nicolas George <span dir="ltr"><<a href="mailto:george@nsup.org" target="_blank">george@nsup.org</a>></span>:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204,204,204);margin:0px 0px 0px 6.7625px;padding:14px 14px 14px 8.45312px;color:rgb(149,149,149);background-color:rgb(245,246,250)">Le sextidi 26 floréal, an CCXXV, YIRAN LI a écrit :<br>
<span>> It's okay for me to add silence to makeup the decode failure but how can I<br>
> know how many silent samples to insert?<br>
<br>
</span>If your frames come from a decent format, then the packets have a<br>
timestamp.<br>
<br></blockquote><div><div style="font-family:georgia,serif;display:inline">​Hi Nicolas,</div></div><div><div style="font-family:georgia,serif;display:inline"><br></div></div><div><div style="font-family:georgia,serif;display:inline">That depends on timestamp, how if timestamp is inaccurate?</div></div><div><div style="font-family:georgia,serif;display:inline">​</div> </div><div><br></div></span><div>tooooooo much worries……  if we met this kind of dump file,just dump it.</div></div></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:georgia,serif">​ffmpeg command line tool and ffplay handle this perfectly, there's no out out sync at all. So there must ​be some way to do it. I just want to find a quick answer instead of checking code myself.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Thanks</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>so you had solutions already…</div><span class=""><blockquote class="gmail_quote" style="border-left:1px solid rgb(204,204,204);margin:0px 0px 0px 6.7625px;padding:14px 14px 14px 8.45312px;color:rgb(149,149,149);background-color:rgb(245,246,250)">
Regards,<br>
<span class="m_-5023541035770794216HOEnZb"><font color="#888888"><br>
--<br>
  Nicolas George<br>
</font></span><div class="m_-5023541035770794216HOEnZb"><div class="m_-5023541035770794216h5">______________________________<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></span></div><br></div></div>

</div><br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
<br></blockquote></div><br></div></div>