aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-19 06:41:50 +0100
committerMax Kellermann <max@duempel.org>2014-12-19 06:41:50 +0100
commit806494a25479f6e1cedea2eaa80d644a81150e26 (patch)
tree1437d8b8eeceadc34f3248f79bb2dc52ac611189 /src
parent5c3afd020a2194ca96182c52a2cb1a70543871ee (diff)
downloadmpd-806494a25479f6e1cedea2eaa80d644a81150e26.tar.gz
mpd-806494a25479f6e1cedea2eaa80d644a81150e26.tar.xz
mpd-806494a25479f6e1cedea2eaa80d644a81150e26.zip
decoder/ffmpeg: add API documentation
Diffstat (limited to 'src')
-rw-r--r--src/decoder/plugins/FfmpegDecoderPlugin.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/decoder/plugins/FfmpegDecoderPlugin.cxx b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
index d73c2ebea..18ac002b3 100644
--- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
+++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
@@ -272,7 +272,7 @@ copy_interleave_frame2(uint8_t *dest, uint8_t **src,
}
/**
- * Copy PCM data from a AVFrame to an interleaved buffer.
+ * Copy PCM data from a non-empty AVFrame to an interleaved buffer.
*/
static ConstBuffer<void>
copy_interleave_frame(const AVCodecContext &codec_context,
@@ -316,6 +316,10 @@ copy_interleave_frame(const AVCodecContext &codec_context,
return { output_buffer, (size_t)data_size };
}
+/**
+ * Decode an #AVPacket and send the resulting PCM data to the decoder
+ * API.
+ */
static DecoderCommand
ffmpeg_send_packet(Decoder &decoder, InputStream &is,
AVPacket packet,