aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-19 11:47:25 +0100
committerMax Kellermann <max@duempel.org>2014-12-19 11:53:58 +0100
commit74bb514a8c333f4238c90f255b0ccec68ed43e38 (patch)
treec5bd3d2c68a916f55f1229301327dd82877d70b5 /src/decoder/plugins
parent46914e486c2487082b0e7c305a8487c512071cfd (diff)
downloadmpd-74bb514a8c333f4238c90f255b0ccec68ed43e38.tar.gz
mpd-74bb514a8c333f4238c90f255b0ccec68ed43e38.tar.xz
mpd-74bb514a8c333f4238c90f255b0ccec68ed43e38.zip
decoder/ffmpeg: convert enums to constexpr
Diffstat (limited to 'src/decoder/plugins')
-rw-r--r--src/decoder/plugins/FfmpegDecoderPlugin.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/decoder/plugins/FfmpegDecoderPlugin.cxx b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
index 0c809c18e..bdf554533 100644
--- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
+++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
@@ -294,10 +294,8 @@ ffmpeg_sample_format(enum AVSampleFormat sample_fmt)
static AVInputFormat *
ffmpeg_probe(Decoder *decoder, InputStream &is)
{
- enum {
- BUFFER_SIZE = 16384,
- PADDING = 16,
- };
+ constexpr size_t BUFFER_SIZE = 16384;
+ constexpr size_t PADDING = 16;
unsigned char buffer[BUFFER_SIZE];
size_t nbytes = decoder_read(decoder, is, buffer, BUFFER_SIZE);