Browse Source

movenc: fix edit list for the case of negative pts.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
14fd34d73b
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavformat/movenc.c

+ 4
- 0
libavformat/movenc.c View File

@@ -1672,6 +1672,10 @@ static int mov_write_edts_tag(AVIOContext *pb, MOVTrack *track)
avio_wb32(pb, -1);
}
avio_wb32(pb, 0x00010000);
} else {
av_assert0(track->cluster[0].dts <= 0);
start_ct = -track->cluster[0].dts;
duration += delay;
}

/* duration */


Loading…
Cancel
Save