diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-21 15:50:19 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-21 15:50:19 +0100 |
commit | fbae0ac3e448f2e45c58e4c3729f5c377ef96fe9 (patch) | |
tree | aaa1236c7d5b266b06453ed5770fd45c8f49808b /libavcodec/ffv1enc.c | |
parent | 114a2eb272077b68bc8e0f2ee8fd6fc85a8e07c2 (diff) | |
download | ffmpeg-fbae0ac3e448f2e45c58e4c3729f5c377ef96fe9.tar.gz |
avcodec/ffv1enc: Use av_clip_uint8()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1enc.c')
-rw-r--r-- | libavcodec/ffv1enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index 39a1501fe7..c3bf759a85 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -924,7 +924,7 @@ static av_cold int encode_init(AVCodecContext *avctx) if (a+b) p = 256.0 * b / (a + b); s->initial_states[i][jp][k] = - best_state[av_clip(round(p), 1, 255)][av_clip((a + b) / gob_count, 0, 255)]; + best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; for(jp++; jp<j; jp++) s->initial_states[i][jp][k] = s->initial_states[i][jp-1][k]; a=b=0; @@ -935,7 +935,7 @@ static av_cold int encode_init(AVCodecContext *avctx) p = 256.0 * b / (a + b); } s->initial_states[i][j][k] = - best_state[av_clip(round(p), 1, 255)][av_clip((a + b) / gob_count, 0, 255)]; + best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; } } } |