MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / wmapro_decode_packet

Function wmapro_decode_packet

libavcodec/wmaprodec.c:1816–1830  ·  view source on GitHub ↗

*@brief Decode a single WMA packet. *@param avctx codec context *@param data the output buffer *@param avpkt input packet *@return number of bytes that were read from the input buffer */

Source from the content-addressed store, hash-verified

1814 *@return number of bytes that were read from the input buffer
1815 */
1816static int wmapro_decode_packet(AVCodecContext *avctx, AVFrame *frame,
1817 int *got_frame_ptr, AVPacket *avpkt)
1818{
1819 WMAProDecodeCtx *s = avctx->priv_data;
1820 int ret;
1821
1822 /* get output buffer */
1823 frame->nb_samples = s->samples_per_frame;
1824 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
1825 s->packet_loss = 1;
1826 return 0;
1827 }
1828
1829 return decode_packet(avctx, s, frame, got_frame_ptr, avpkt);
1830}
1831
1832static int xma_decode_packet(AVCodecContext *avctx, AVFrame *frame,
1833 int *got_frame_ptr, AVPacket *avpkt)

Callers

nothing calls this directly

Calls 2

ff_get_bufferFunction · 0.85
decode_packetFunction · 0.70

Tested by

no test coverage detected