diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-04-22 21:29:49 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-02-20 08:56:00 +0100 |
commit | 4be49546e16eb5d7aa783285e1f0c2c5ed179d1a (patch) | |
tree | b7bd98978651fe8fe017cd207f42b6484d585ed6 /src/decoder_api.h | |
parent | 3756812cbc334d41421a33e54f7fa3ea6e46808c (diff) |
decoder api: use AVFrame for passing data to the decoder.
Switch to libavresample for format conversion.
Diffstat (limited to 'src/decoder_api.h')
-rw-r--r-- | src/decoder_api.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decoder_api.h b/src/decoder_api.h index 6e011c39..4ac00142 100644 --- a/src/decoder_api.h +++ b/src/decoder_api.h @@ -36,6 +36,8 @@ #include "audio_format.h" #include "conf.h" +#include <libavutil/frame.h> + #include <stdbool.h> /** @@ -126,10 +128,8 @@ decoder_timestamp(struct decoder *decoder, double t); * @return the current command, or DECODE_COMMAND_NONE if there is no * command pending */ -enum decoder_command -decoder_data(struct decoder *decoder, struct input_stream *is, - const void *data, size_t length, - uint16_t kbit_rate); +enum decoder_command decoder_data(struct decoder *decoder, struct input_stream *is, + AVFrame *frame, uint16_t kbit_rate); /** * This function is called by the decoder plugin when it has |