Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-20 20:58:39 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-05-28 01:52:08 +0400
commit735deda2cfeca24e842604f09eca487d501c2224 (patch)
tree60f0218563dd822dc12e6e4935df42dfb6543c0b /libavformat
parent5f64a7a6252ff7872975cd992f0d0ab5190eb43b (diff)
avienc: Disallow the first frame to be skiped
Fixes Ticket2386 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit cc0db8cf3042186d8355dcf10be67071cfbbcc5d)
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avienc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 15f07943f6..918992f5a9 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -523,7 +523,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
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);
- 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;
if(pkt->dts - avist->packet_count > 60000){