Mercurial > libavformat.hg
comparison ffmenc.c @ 3527:32840cdd83b3 libavformat
fix size of header data
author | stefang |
---|---|
date | Fri, 27 Jun 2008 21:42:08 +0000 |
parents | 6facc89bece8 |
children | 255a1b73b4e3 |
comparison
equal
deleted
inserted
replaced
3526:ae0885c44048 | 3527:32840cdd83b3 |
---|---|
187 } | 187 } |
188 | 188 |
189 static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt) | 189 static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt) |
190 { | 190 { |
191 int64_t dts; | 191 int64_t dts; |
192 uint8_t header[FRAME_HEADER_SIZE]; | 192 uint8_t header[FRAME_HEADER_SIZE+4]; |
193 int header_size = FRAME_HEADER_SIZE; | 193 int header_size = FRAME_HEADER_SIZE; |
194 | 194 |
195 dts = s->timestamp + pkt->dts; | 195 dts = s->timestamp + pkt->dts; |
196 /* packet size & key_frame */ | 196 /* packet size & key_frame */ |
197 header[0] = pkt->stream_index; | 197 header[0] = pkt->stream_index; |