diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c index 3b6f9b3f83..4580651e75 100644 --- a/libavformat/swfenc.c +++ b/libavformat/swfenc.c @@ -279,8 +279,8 @@ static int swf_write_header(AVFormatContext *s) avio_w8(pb, 0x41); /* clipped bitmap fill */ avio_wl16(pb, BITMAP_ID); /* bitmap ID */ /* position of the bitmap */ - put_swf_matrix(pb, (int)(1.0 * (1 << FRAC_BITS)), 0, - 0, (int)(1.0 * (1 << FRAC_BITS)), 0, 0); + put_swf_matrix(pb, 1 << FRAC_BITS, 0, + 0, 1 << FRAC_BITS, 0, 0); avio_w8(pb, 0); /* no line style */ /* shape drawing */