aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/flashsvenc.c
diff options
context:
space:
mode:
authorBenjamin Larsson <banan@ludd.ltu.se>2007-05-17 11:03:43 +0000
committerBenjamin Larsson <banan@ludd.ltu.se>2007-05-17 11:03:43 +0000
commitc17a53b71f4786870d10787d3dbc3e50fe0fd0b5 (patch)
tree0338d06dee69a26c6746fb150a1c80e28b8677c9 /libavcodec/flashsvenc.c
parentc8df9c63587e061e08d17ace01fef15fb9834b4d (diff)
downloadffmpeg-c17a53b71f4786870d10787d3dbc3e50fe0fd0b5.tar.gz
Use FFABS instead of abs.
Originally committed as revision 9045 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flashsvenc.c')
-rw-r--r--libavcodec/flashsvenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c
index f847e409bd..2b791c2948 100644
--- a/libavcodec/flashsvenc.c
+++ b/libavcodec/flashsvenc.c
@@ -218,7 +218,7 @@ static int flashsv_encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_siz
/* First frame needs to be a keyframe */
if (avctx->frame_number == 0) {
- s->previous_frame = av_mallocz(abs(p->linesize[0])*s->image_height);
+ s->previous_frame = av_mallocz(FFABS(p->linesize[0])*s->image_height);
if (!s->previous_frame) {
av_log(avctx, AV_LOG_ERROR, "Memory allocation failed.\n");
return -1;
@@ -253,7 +253,7 @@ static int flashsv_encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_siz
if(p->linesize[0] > 0)
memcpy(s->previous_frame, p->data[0], s->image_height*p->linesize[0]);
else
- memcpy(s->previous_frame, p->data[0] + p->linesize[0] * (s->image_height-1), s->image_height*abs(p->linesize[0]));
+ memcpy(s->previous_frame, p->data[0] + p->linesize[0] * (s->image_height-1), s->image_height*FFABS(p->linesize[0]));
//mark the frame type so the muxer can mux it correctly
if (I_frame) {