diff options
author | Martin Storsjö <martin@martin.st> | 2015-03-06 15:45:50 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-03-19 10:26:52 +0200 |
commit | 2889c5e16711770437f380f1bead5f72c6a0b17a (patch) | |
tree | 59c9002884f3d39b419603a67a97fd321854644e /libavformat/movenc.h | |
parent | 8dc72eeaf647736c287b59a3856a11904bedd58b (diff) | |
download | ffmpeg-2889c5e16711770437f380f1bead5f72c6a0b17a.tar.gz |
movenc: Heuristically set the duration of the last sample in a fragment if not set
Even if this is a guess, it is way better than writing a zero duration
of the last sample in a fragment (because if the duration is zero,
the first sample of the next fragment will have the same timestamp
as the last sample in the previous one).
Since we normally don't require libavformat muxer users to set
the duration field in AVPacket, we probably can't strictly require
it here either, so don't log this as a strict warning, only as info.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r-- | libavformat/movenc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h index eb059d915f..a1d49024bd 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -174,6 +174,7 @@ typedef struct MOVMuxContext { int use_editlist; int frag_interleave; + int missing_duration_warned; } MOVMuxContext; #define FF_MOV_FLAG_RTP_HINT (1 << 0) |