mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avformat/flacenc: use av_clip() instead of av_clip_c()
This commit is contained in:
parent
2c21e8b1a4
commit
de0e49c245
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user