??????????????????framesxframe rate/sample rate

 
---Original---
From: "YIRAN LI"<[email protected]>
Date: 2017/5/15 15:24:21
To: "This list is about using libavcodec, libavformat, libavutil,libavdevice 
and libavfilter."<[email protected]>;
Subject: Re: [Libav-user] What should I do when avcodec_decode_audio4 fails?





2017-05-15 17:12 GMT+10:00 ???????? <[email protected]>:
??????????????????


?6?7Thanks powerpan,




I think I need to know how many samples this packet contains to insert same 
number of silent samples, but number of samples is in decoded_frame, when 
decode fails, the fields in decoded_frame have no meaning. 

?6?7








 
---Original---
From: "YIRAN LI"<[email protected]>
Date: 2017/5/15 14:31:58
To: "This list is about using libavcodec, libavformat, libavutil,libavdevice 
and libavfilter."<[email protected]>;
Subject: [Libav-user] What should I do when avcodec_decode_audio4 fails?


Hi there,




When running my program with an audio-broken file, at some point 
avcodec_decode_audio4 returns < 0 which mean decode failure.


It's okay for me to add silence to makeup the decode failure but how can I know 
how many silent samples to insert?


Thanks

 



_______________________________________________
 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