Mercurial > libavformat.hg
comparison avienc.c @ 1443:404048ea11bc libavformat
Replace most of the %lld and %llx by their (cleaner) PRI*64 counterparts.
patch by Steve Lhomme, slhomme divxcorp com
author | diego |
---|---|
date | Wed, 01 Nov 2006 22:39:58 +0000 |
parents | 3b00fb8ef8e4 |
children | 65b7b3ff4ed7 |
comparison
equal
deleted
inserted
replaced
1442:c2b748de9b35 | 1443:404048ea11bc |
---|---|
445 unsigned int flags=0; | 445 unsigned int flags=0; |
446 const int stream_index= pkt->stream_index; | 446 const int stream_index= pkt->stream_index; |
447 AVCodecContext *enc= s->streams[stream_index]->codec; | 447 AVCodecContext *enc= s->streams[stream_index]->codec; |
448 int size= pkt->size; | 448 int size= pkt->size; |
449 | 449 |
450 // av_log(s, AV_LOG_DEBUG, "%lld %d %d\n", pkt->dts, avi->packet_count[stream_index], stream_index); | 450 // av_log(s, AV_LOG_DEBUG, "%"PRId64" %d %d\n", pkt->dts, avi->packet_count[stream_index], stream_index); |
451 while(enc->block_align==0 && pkt->dts != AV_NOPTS_VALUE && pkt->dts > avi->packet_count[stream_index]){ | 451 while(enc->block_align==0 && pkt->dts != AV_NOPTS_VALUE && pkt->dts > avi->packet_count[stream_index]){ |
452 AVPacket empty_packet; | 452 AVPacket empty_packet; |
453 | 453 |
454 av_init_packet(&empty_packet); | 454 av_init_packet(&empty_packet); |
455 empty_packet.size= 0; | 455 empty_packet.size= 0; |
456 empty_packet.data= NULL; | 456 empty_packet.data= NULL; |
457 empty_packet.stream_index= stream_index; | 457 empty_packet.stream_index= stream_index; |
458 avi_write_packet(s, &empty_packet); | 458 avi_write_packet(s, &empty_packet); |
459 // av_log(s, AV_LOG_DEBUG, "dup %lld %d\n", pkt->dts, avi->packet_count[stream_index]); | 459 // av_log(s, AV_LOG_DEBUG, "dup %"PRId64" %d\n", pkt->dts, avi->packet_count[stream_index]); |
460 } | 460 } |
461 avi->packet_count[stream_index]++; | 461 avi->packet_count[stream_index]++; |
462 | 462 |
463 // Make sure to put an OpenDML chunk when the file size exceeds the limits | 463 // Make sure to put an OpenDML chunk when the file size exceeds the limits |
464 if (!url_is_streamed(pb) && | 464 if (!url_is_streamed(pb) && |