comparison matroskaenc.c @ 2434:273c76713989 libavformat

Compile fix; missed a variable declaration in the last commit
author conrad
date Wed, 05 Sep 2007 00:22:54 +0000
parents 0c047310f205
children 4dde24899d01
comparison
equal deleted inserted replaced
2433:0c047310f205 2434:273c76713989
223 } 223 }
224 224
225 static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt) 225 static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt)
226 { 226 {
227 ByteIOContext *pb = &s->pb; 227 ByteIOContext *pb = &s->pb;
228 offset_t block;
228 229
229 block = start_ebml_master(pb, MATROSKA_ID_SIMPLEBLOCK); 230 block = start_ebml_master(pb, MATROSKA_ID_SIMPLEBLOCK);
230 put_byte(pb, 0x80 | pkt->stream_index); // this assumes stream_index is less than 127 231 put_byte(pb, 0x80 | pkt->stream_index); // this assumes stream_index is less than 127
231 put_be16(pb, pkt->pts); 232 put_be16(pb, pkt->pts);
232 put_byte(pb, !!(pkt->flags & PKT_FLAG_KEY)); 233 put_byte(pb, !!(pkt->flags & PKT_FLAG_KEY));