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
This commit is contained in:
Panagiotis Issaris
2003-10-26 10:49:49 +00:00
committed by Michael Niedermayer
parent 14cabd4068
commit 0bf92f7957
2 changed files with 5 additions and 5 deletions

View File

@@ -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 ;