Mercurial > libavformat.hg
comparison ogg.c @ 290:7a3ed84008ec libavformat
GCC 3.3.2 warnings patch by (Panagiotis Issaris <takis at lumumba dot luc dot ac dot be>)
author | michael |
---|---|
date | Sun, 26 Oct 2003 10:49:49 +0000 |
parents | a313e1080322 |
children | 741c56c608bb |
comparison
equal
deleted
inserted
replaced
289:4baa098c12c3 | 290:7a3ed84008ec |
---|---|
88 } | 88 } |
89 | 89 |
90 | 90 |
91 static int ogg_write_packet(AVFormatContext *avfcontext, | 91 static int ogg_write_packet(AVFormatContext *avfcontext, |
92 int stream_index, | 92 int stream_index, |
93 unsigned char *buf, int size, int force_pts) | 93 const uint8_t *buf, int size, int64_t force_pts) |
94 { | 94 { |
95 OggContext *context = avfcontext->priv_data ; | 95 OggContext *context = avfcontext->priv_data ; |
96 ogg_packet *op ; | 96 ogg_packet *op ; |
97 ogg_page og ; | 97 ogg_page og ; |
98 int l = 0 ; | 98 int l = 0 ; |
108 context->header_handled = 1 ; | 108 context->header_handled = 1 ; |
109 } | 109 } |
110 | 110 |
111 while(l < size) { | 111 while(l < size) { |
112 op = (ogg_packet*)(buf + l) ; | 112 op = (ogg_packet*)(buf + l) ; |
113 op->packet = buf + l + sizeof(ogg_packet) ; /* fix data pointer */ | 113 op->packet = (uint8_t*) buf + l + sizeof( ogg_packet) ; /* fix data pointer */ |
114 | 114 |
115 if(!context->base_packet_no) { /* this is the first packet */ | 115 if(!context->base_packet_no) { /* this is the first packet */ |
116 context->base_packet_no = op->packetno ; | 116 context->base_packet_no = op->packetno ; |
117 context->base_granule_pos = op->granulepos ; | 117 context->base_granule_pos = op->granulepos ; |
118 } | 118 } |