summaryrefslogtreecommitdiff
path: root/libav/avienc.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2001-08-13 21:37:10 +0000
committerFabrice Bellard <fabrice@bellard.org>2001-08-13 21:37:10 +0000
commit8be1c6563cd3e13896b8f3381cf6a8e200c1f53b (patch)
tree3f80373f11ddba48ee510969a2af3374e76c8b27 /libav/avienc.c
parent519c2b6d1182513a83efee5b1e8634a7feaedbbf (diff)
win32 fixes
Originally committed as revision 78 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/avienc.c')
-rw-r--r--libav/avienc.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/libav/avienc.c b/libav/avienc.c
index a580e53098..ffd581bc8b 100644
--- a/libav/avienc.c
+++ b/libav/avienc.c
@@ -16,11 +16,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <stdlib.h>
-#include <stdio.h>
-#include <netinet/in.h>
-#include <string.h>
-
#include "avformat.h"
#include "avi.h"
@@ -53,7 +48,7 @@ void end_tag(ByteIOContext *pb, offset_t start)
pos = url_ftell(pb);
url_fseek(pb, start - 4, SEEK_SET);
- put_le32(pb, pos - start);
+ put_le32(pb, (UINT32)(pos - start));
url_fseek(pb, pos, SEEK_SET);
}
@@ -179,7 +174,7 @@ static int avi_write_header(AVFormatContext *s)
}
nb_frames = 0;
- put_le32(pb, 1000000LL * FRAME_RATE_BASE / video_enc->frame_rate);
+ put_le32(pb, (UINT32)(INT64_C(1000000) * FRAME_RATE_BASE / video_enc->frame_rate));
put_le32(pb, bitrate / 8); /* XXX: not quite exact */
put_le32(pb, 0); /* padding */
put_le32(pb, AVIF_TRUSTCKTYPE | AVIF_HASINDEX | AVIF_ISINTERLEAVED); /* flags */
@@ -340,7 +335,7 @@ static int avi_write_trailer(AVFormatContext *s)
/* update file size */
file_size = url_ftell(pb);
url_fseek(pb, 4, SEEK_SET);
- put_le32(pb, file_size - 8);
+ put_le32(pb, (UINT32)(file_size - 8));
url_fseek(pb, file_size, SEEK_SET);
}
put_flush_packet(pb);