summaryrefslogtreecommitdiff
path: root/libavformat/movenc.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-03-06 15:45:50 +0200
committerMartin Storsjö <martin@martin.st>2015-03-19 10:26:52 +0200
commit2889c5e16711770437f380f1bead5f72c6a0b17a (patch)
tree59c9002884f3d39b419603a67a97fd321854644e /libavformat/movenc.h
parent8dc72eeaf647736c287b59a3856a11904bedd58b (diff)
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.h1
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)