2017-05-15 23:38 GMT+10:00 坚定前行 <[email protected]>:

>
>
> ---Original---
>


> 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…
>

​Thanks Powerpan,

I'll have a double check, but I doubt maybe it doesn't work.

I mean for example each packet contains 100 samples and 10th packet failed
to decode.

that means all samples in 10th packet cant de decoded, right​? so this
packet is wasted.
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.

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.


so you had solutions already…
>>
>>> Regards,
>>>
>>> --
>>>   Nicolas George
>>> _______________________________________________
>>> Libav-user mailing list
>>> [email protected]
>>> http://ffmpeg.org/mailman/listinfo/libav-user
>>>
>>
>>
>> _______________________________________________
>> Libav-user mailing list
>> [email protected]
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>>
>
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to