summaryrefslogtreecommitdiff
path: root/libavformat/ogg.c
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2003-10-26 10:49:49 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-10-26 10:49:49 +0000
commit0bf92f7957f763face74bbade364293b3689064c (patch)
tree07feac46076ff1a0ce5f6e9583389e16c73c412e /libavformat/ogg.c
parent14cabd40680e459e5d5385e9045d2391b56d2b95 (diff)
GCC 3.3.2 warnings patch by (Panagiotis Issaris <takis at lumumba dot luc dot ac dot be>)
Originally committed as revision 2440 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ogg.c')
-rw-r--r--libavformat/ogg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/ogg.c b/libavformat/ogg.c
index ae2ea965c7..c127ff747c 100644
--- a/libavformat/ogg.c
+++ b/libavformat/ogg.c
@@ -90,7 +90,7 @@ static int ogg_write_header(AVFormatContext *avfcontext)
static int ogg_write_packet(AVFormatContext *avfcontext,
int stream_index,
- unsigned char *buf, int size, int force_pts)
+ const uint8_t *buf, int size, int64_t force_pts)
{
OggContext *context = avfcontext->priv_data ;
ogg_packet *op ;
@@ -110,7 +110,7 @@ static int ogg_write_packet(AVFormatContext *avfcontext,
while(l < size) {
op = (ogg_packet*)(buf + l) ;
- op->packet = buf + l + sizeof(ogg_packet) ; /* fix data pointer */
+ op->packet = (uint8_t*) buf + l + sizeof( ogg_packet) ; /* fix data pointer */
if(!context->base_packet_no) { /* this is the first packet */
context->base_packet_no = op->packetno ;