You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avienc: Disallow the first frame to be skiped
Fixes Ticket2386 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -523,7 +523,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
int size= pkt->size;
|
int size= pkt->size;
|
||||||
|
|
||||||
av_dlog(s, "dts:%s packet_count:%d stream_index:%d\n", av_ts2str(pkt->dts), avist->packet_count, stream_index);
|
av_dlog(s, "dts:%s packet_count:%d stream_index:%d\n", av_ts2str(pkt->dts), avist->packet_count, stream_index);
|
||||||
while(enc->block_align==0 && pkt->dts != AV_NOPTS_VALUE && pkt->dts > avist->packet_count && enc->codec_id != AV_CODEC_ID_XSUB){
|
while(enc->block_align==0 && pkt->dts != AV_NOPTS_VALUE && pkt->dts > avist->packet_count && enc->codec_id != AV_CODEC_ID_XSUB && avist->packet_count){
|
||||||
AVPacket empty_packet;
|
AVPacket empty_packet;
|
||||||
|
|
||||||
if(pkt->dts - avist->packet_count > 60000){
|
if(pkt->dts - avist->packet_count > 60000){
|
||||||
|
Reference in New Issue
Block a user