diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-14 19:20:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-14 23:20:25 +0200 |
commit | bfbe07670bb0d0d902c03953d44f9482709696ee (patch) | |
tree | 849a602c624c750707a94b969d1b1e0891462a89 /libavcodec/wavpackenc.c | |
parent | 1a53ddd9a2951a51be28a780f6aed0e0620f9cae (diff) | |
download | ffmpeg-bfbe07670bb0d0d902c03953d44f9482709696ee.tar.gz |
wavpackenc: simplify "sign = ((sample) < 0) ? 1 : 0;"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wavpackenc.c')
-rw-r--r-- | libavcodec/wavpackenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpackenc.c b/libavcodec/wavpackenc.c index 1a4f25206a..3cc74bd88d 100644 --- a/libavcodec/wavpackenc.c +++ b/libavcodec/wavpackenc.c @@ -2049,7 +2049,7 @@ static void wavpack_encode_sample(WavPackEncodeContext *s, WvChannel *c, int32_t { WavPackWords *w = &s->w; uint32_t ones_count, low, high; - int sign = ((sample) < 0) ? 1 : 0; + int sign = sample < 0; if (s->w.c[0].median[0] < 2 && !s->w.holding_zero && s->w.c[1].median[0] < 2) { if (w->zeros_acc) { |