Mercurial > libavformat.hg
diff swf.c @ 241:3d92f793fd67 libavformat
64 bit pts for writing - more const usage
author | bellard |
---|---|
date | Wed, 10 Sep 2003 22:37:33 +0000 |
parents | 2fa5e94ba716 |
children | 3dd3646e0164 |
line wrap: on
line diff
--- a/swf.c Wed Sep 10 13:00:24 2003 +0000 +++ b/swf.c Wed Sep 10 22:37:33 2003 +0000 @@ -318,7 +318,7 @@ } static int swf_write_video(AVFormatContext *s, - AVCodecContext *enc, uint8_t *buf, int size) + AVCodecContext *enc, const uint8_t *buf, int size) { ByteIOContext *pb = &s->pb; static int tag_id = 0; @@ -366,7 +366,7 @@ return 0; } -static int swf_write_audio(AVFormatContext *s, uint8_t *buf, int size) +static int swf_write_audio(AVFormatContext *s, const uint8_t *buf, int size) { ByteIOContext *pb = &s->pb; @@ -380,7 +380,7 @@ } static int swf_write_packet(AVFormatContext *s, int stream_index, - uint8_t *buf, int size, int force_pts) + const uint8_t *buf, int size, int64_t pts) { AVCodecContext *codec = &s->streams[stream_index]->codec; if (codec->codec_type == CODEC_TYPE_AUDIO)