[FFmpeg-devel] [PATCH 1/2] avformat/flacenc: use av_clip() instead of av_clip_c()
Clément Bœsch
u at pkh.me
Tue Sep 16 10:15:41 CEST 2014
---
libavformat/flacenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/flacenc.c b/libavformat/flacenc.c
index b3695a2..0eea942 100644
--- a/libavformat/flacenc.c
+++ b/libavformat/flacenc.c
@@ -95,7 +95,7 @@ static int flac_write_header(struct AVFormatContext *s)
padding = 8192;
/* The FLAC specification states that 24 bits are used to represent the
* size of a metadata block so we must clip this value to 2^24-1. */
- padding = av_clip_c(padding, 0, 16777215);
+ padding = av_clip(padding, 0, 16777215);
ret = ff_flac_write_header(s->pb, codec->extradata,
codec->extradata_size, 0);
--
2.1.0
More information about the ffmpeg-devel
mailing list