comparison avienc.c @ 480:cfcca046161a libavformat

10l fix by (Bohdan Horst <nexus at irc dot pl>)
author michael
date Thu, 17 Jun 2004 10:46:08 +0000
parents d84d9d8bb0a4
children b0b8bf74cd49
comparison
equal deleted inserted replaced
479:d84d9d8bb0a4 480:cfcca046161a
617 AVIContext *avi = s->priv_data; 617 AVIContext *avi = s->priv_data;
618 ByteIOContext *pb = &s->pb; 618 ByteIOContext *pb = &s->pb;
619 unsigned char tag[5]; 619 unsigned char tag[5];
620 unsigned int flags=0; 620 unsigned int flags=0;
621 const int stream_index= pkt->stream_index; 621 const int stream_index= pkt->stream_index;
622 AVCodecContext *enc= &s->streams[stream_index]->codec;; 622 AVCodecContext *enc= &s->streams[stream_index]->codec;
623 int size= pkt->size; 623 int size= pkt->size;
624 624
625 // av_log(s, AV_LOG_DEBUG, "%lld %d %d\n", pkt->dts, avi->packet_count[stream_index], stream_index); 625 // av_log(s, AV_LOG_DEBUG, "%lld %d %d\n", pkt->dts, avi->packet_count[stream_index], stream_index);
626 while(enc->codec_type == CODEC_TYPE_VIDEO && pkt->dts != AV_NOPTS_VALUE && pkt->dts > avi->packet_count[stream_index]){ 626 while(enc->codec_type == CODEC_TYPE_VIDEO && pkt->dts != AV_NOPTS_VALUE && pkt->dts > avi->packet_count[stream_index]){
627 AVPacket empty_packet; 627 AVPacket empty_packet;