Commit dbe3b6ee authored by Max Kellermann's avatar Max Kellermann

decoder/ffmpeg: convert enums to constexpr

parent df970496
...@@ -362,10 +362,8 @@ ffmpeg_sample_format(enum AVSampleFormat sample_fmt) ...@@ -362,10 +362,8 @@ ffmpeg_sample_format(enum AVSampleFormat sample_fmt)
static AVInputFormat * static AVInputFormat *
ffmpeg_probe(Decoder *decoder, InputStream &is) ffmpeg_probe(Decoder *decoder, InputStream &is)
{ {
enum { constexpr size_t BUFFER_SIZE = 16384;
BUFFER_SIZE = 16384, constexpr size_t PADDING = 16;
PADDING = 16,
};
unsigned char buffer[BUFFER_SIZE]; unsigned char buffer[BUFFER_SIZE];
size_t nbytes = decoder_read(decoder, is, buffer, BUFFER_SIZE); size_t nbytes = decoder_read(decoder, is, buffer, BUFFER_SIZE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment