diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-09-10 22:37:33 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-09-10 22:37:33 +0000 |
commit | 490579042adbd90921a175c3f738e662b93fe628 (patch) | |
tree | 34a8ede2ca4c5cc920389522c827ebece54e9615 /libavformat/gif.c | |
parent | 8c653280bd2b8606e276045c8b4f2deec3bf8772 (diff) | |
download | ffmpeg-490579042adbd90921a175c3f738e662b93fe628.tar.gz |
64 bit pts for writing - more const usage
Originally committed as revision 2255 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/gif.c')
-rw-r--r-- | libavformat/gif.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c index 1df8827a33..cd7cf9371f 100644 --- a/libavformat/gif.c +++ b/libavformat/gif.c @@ -220,12 +220,12 @@ static inline unsigned char gif_clut_index(uint8_t r, uint8_t g, uint8_t b) static int gif_image_write_image(ByteIOContext *pb, int x1, int y1, int width, int height, - uint8_t *buf, int linesize, int pix_fmt) + const uint8_t *buf, int linesize, int pix_fmt) { PutBitContext p; uint8_t buffer[200]; /* 100 * 9 / 8 = 113 */ int i, left, w, v; - uint8_t *ptr; + const uint8_t *ptr; /* image block */ put_byte(pb, 0x2c); @@ -331,7 +331,7 @@ static int gif_write_header(AVFormatContext *s) } static int gif_write_video(AVFormatContext *s, - AVCodecContext *enc, uint8_t *buf, int size) + AVCodecContext *enc, const uint8_t *buf, int size) { ByteIOContext *pb = &s->pb; GIFContext *gif = s->priv_data; @@ -366,7 +366,7 @@ static int gif_write_video(AVFormatContext *s, } static int gif_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) |