*@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 */
| 1814 | *@return number of bytes that were read from the input buffer |
| 1815 | */ |
| 1816 | static 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 | |
| 1832 | static int xma_decode_packet(AVCodecContext *avctx, AVFrame *frame, |
| 1833 | int *got_frame_ptr, AVPacket *avpkt) |
nothing calls this directly
no test coverage detected