Keyframe is the first bit not last

Originally committed as revision 10325 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
David Conrad 18 years ago
parent 357eba6f0b
commit f9c8d57b79
  1. 2
      libavformat/matroskaenc.c

@ -544,7 +544,7 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt)
put_ebml_size(pb, pkt->size + 4, 0);
put_byte(pb, 0x80 | (pkt->stream_index + 1)); // this assumes stream_index is less than 126
put_be16(pb, pkt->pts - mkv->cluster_pts);
put_byte(pb, keyframe);
put_byte(pb, keyframe << 7);
put_buffer(pb, pkt->data, pkt->size);
if (s->streams[pkt->stream_index]->codec->codec_type == CODEC_TYPE_VIDEO && keyframe) {

Loading…
Cancel
Save