aboutsummaryrefslogtreecommitdiffstats
path: root/libav/swf.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/swf.c
parent519c2b6d1182513a83efee5b1e8634a7feaedbbf (diff)
downloadffmpeg-8be1c6563cd3e13896b8f3381cf6a8e200c1f53b.tar.gz
win32 fixes
Originally committed as revision 78 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/swf.c')
-rw-r--r--libav/swf.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/libav/swf.c b/libav/swf.c
index a93c4f7097..879d7cdb93 100644
--- a/libav/swf.c
+++ b/libav/swf.c
@@ -16,15 +16,8 @@
* 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 <string.h>
-#include <errno.h>
-
#include "avformat.h"
-#include <assert.h>
-
/* should have a generic way to indicate probable size */
#define DUMMY_FILE_SIZE (100 * 1024 * 1024)
#define DUMMY_DURATION 600 /* in seconds */
@@ -51,8 +44,8 @@
#define SHAPE_ID 1
typedef struct {
- long long duration_pos;
- long long tag_pos;
+ offset_t duration_pos;
+ offset_t tag_pos;
int tag;
} SWFContext;
@@ -76,7 +69,7 @@ static void put_swf_end_tag(AVFormatContext *s)
{
SWFContext *swf = s->priv_data;
ByteIOContext *pb = &s->pb;
- long long pos;
+ offset_t pos;
int tag_len, tag;
pos = url_ftell(pb);
@@ -237,7 +230,7 @@ static int swf_write_header(AVFormatContext *s)
put_swf_rect(pb, 0, width, 0, height);
put_le16(pb, (rate * 256) / FRAME_RATE_BASE); /* frame rate */
swf->duration_pos = url_ftell(pb);
- put_le16(pb, DUMMY_DURATION * (INT64)rate / FRAME_RATE_BASE); /* frame count */
+ put_le16(pb, (UINT16)(DUMMY_DURATION * (INT64)rate / FRAME_RATE_BASE)); /* frame count */
/* define a shape with the jpeg inside */