[FFmpeg-devel] avcodec_send_packet: send 0 size packet to libopus for loss concealment
Anthony Alba
ascanio.alba7 at gmail.com
Thu Oct 3 03:30:05 EEST 2019
Hi devs,
I am converting a PCAP RTP file using the libopus decoder and there
may be missing packets. This is not a real-time application. I am
implementing my own reordering/missing packet buffer so if the buffer
declares a packet "lost" I want to inform the libopus.
Two questions:
1. What is the correct pattern to avcodec_send_packet() to signal lost
packet to a generic decoder?
2. libopus accepts NULL data and 0 size for loss concealment, but this
is a flush packet in libavcodec semantics, so how do you pass-through
this information? I accept that this is a leaky implementation detail
of the decoder so probably not the "correct" way to use libavcodec.
Thank you.
Anthony
More information about the ffmpeg-devel
mailing list