aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-04-08 22:12:49 +0200
committerMax Kellermann <max@duempel.org>2013-04-08 22:12:49 +0200
commit3477acee482804ffa9bdc8a74c72bb0facb668fa (patch)
treefd1b670331a3b9a673ef4cdd343d7529956e412c /src
parent2c4b99817025c8aa2734877bb74af36f90436330 (diff)
downloadmpd-3477acee482804ffa9bdc8a74c72bb0facb668fa.tar.gz
mpd-3477acee482804ffa9bdc8a74c72bb0facb668fa.tar.xz
mpd-3477acee482804ffa9bdc8a74c72bb0facb668fa.zip
decoder/ffmpeg: suppress warning about unused variable
Only relevant for old ffmpeg versions.
Diffstat (limited to '')
-rw-r--r--src/decoder/FfmpegDecoderPlugin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/decoder/FfmpegDecoderPlugin.cxx b/src/decoder/FfmpegDecoderPlugin.cxx
index 3f3e8a43a..fe657728a 100644
--- a/src/decoder/FfmpegDecoderPlugin.cxx
+++ b/src/decoder/FfmpegDecoderPlugin.cxx
@@ -308,6 +308,8 @@ ffmpeg_send_packet(struct decoder *decoder, struct input_stream *is,
} else if (len >= 0)
len = -1;
#else
+ (void)frame;
+
int len = avcodec_decode_audio3(codec_context,
aligned_buffer, &audio_size,
&packet2);