Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2015/02/21 22:43:28... | ... |
@@ -95,7 +95,7 @@ static int flac_write_header(struct AVFormatContext *s) |
95 | 95 |
padding = 8192; |
96 | 96 |
/* The FLAC specification states that 24 bits are used to represent the |
97 | 97 |
* size of a metadata block so we must clip this value to 2^24-1. */ |
98 |
- padding = av_clip(padding, 0, 16777215); |
|
98 |
+ padding = av_clip_uintp2(padding, 24); |
|
99 | 99 |
|
100 | 100 |
ret = ff_flac_write_header(s->pb, codec->extradata, |
101 | 101 |
codec->extradata_size, 0); |