aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-20 21:42:06 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-05-20 23:56:53 +0200
commit5f64a7a6252ff7872975cd992f0d0ab5190eb43b (patch)
tree2bbbbb8459cc9e0d145736ed818b02026d628777 /libavcodec
parentffd28de388638036c1a88f793876423507c21c48 (diff)
downloadffmpeg-5f64a7a6252ff7872975cd992f0d0ab5190eb43b.tar.gz
smacker: remove av_clip_int16()
Fixes Ticket2425 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 2211c76287e073a9e176fde7dbb9a63ceb2af8d1)
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/smacker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index ad1d4c3171..5143d0b180 100644
--- a/libavcodec/smacker.c
+++ b/libavcodec/smacker.c
@@ -694,7 +694,7 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data,
}
val |= h[3].values[res] << 8;
pred[1] += sign_extend(val, 16);
- *samples++ = av_clip_int16(pred[1]);
+ *samples++ = pred[1];
} else {
if(vlc[0].table)
res = get_vlc2(&gb, vlc[0].table, SMKTREE_BITS, 3);
@@ -715,7 +715,7 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data,
}
val |= h[1].values[res] << 8;
pred[0] += sign_extend(val, 16);
- *samples++ = av_clip_int16(pred[0]);
+ *samples++ = pred[0];
}
}
} else { //8-bit data