<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:38 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></blockquote><div> </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 style="font-family:georgia,serif">then simply wait for the correct time stamp… that is what i said for sync frame. all day out of office had 2 use mobile to reply…</div></div></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:georgia,serif">Thanks Powerpan,</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I'll have a double check, but I doubt maybe it doesn't work.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I mean for example each packet contains 100 samples and 10th packet failed to decode.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">that means all samples in 10th packet cant de decoded, right? so this packet is wasted. </div><div class="gmail_default" style="font-family:georgia,serif">Next time I call avcode_decode_audio4 with 11th packet, I'll also get 100 samples in decoded frame, but that are samples after 10the packet. I need to insert 100 silent samples before them. I mean in case of decoding failure, unless ffmpeg does some make up internally, the user of API must makeup himself.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Maybe I am wrong about ffmpeg command line tool because the corrupt packet contains only few samples (about 0.016 second), maybe they are lost and never made up, just too short to be noticed.</div><div class="gmail_default" style="font-family:georgia,serif"><br></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"><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)"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>so you had solutions already…</div><span><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_-8454817065381567002m_-5023541035770794216HOEnZb"><font color="#888888"><br>
--<br>
Nicolas George<br>
</font></span><div class="m_-8454817065381567002m_-5023541035770794216HOEnZb"><div class="m_-8454817065381567002m_-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" 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>
<br></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>