summaryrefslogtreecommitdiff
path: root/libavformat/movenc.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2021-04-27 12:15:11 -0400
committerVittorio Giovara <vittorio.giovara@gmail.com>2021-05-04 15:32:26 +0200
commitc75dfa043585db7f5e20f5cab2ca8be1771ca7b6 (patch)
tree2b7e141c00c6645ab04a9cf3cd5e7bedcd84651f /libavformat/movenc.h
parente27e80edcd3a20efb8520943448aa9353a191ecd (diff)
movenc: add movie_timescale option instead of hardcoding 1000
There are cases where using 1000 as the MP4 timescale is not accurate enough, for example when one needs sample-accurate audio handling. This adds a new AVOption to the MOV/MP4 muxer to override the movie timescale, but it still defaults to 1000 to maintain current default behavior. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
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 cdbc4074c3..af1ea0bce6 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -237,6 +237,7 @@ typedef struct MOVMuxContext {
int write_tmcd;
MOVPrftBox write_prft;
int empty_hdlr_name;
+ int movie_timescale;
} MOVMuxContext;
#define FF_MOV_FLAG_RTP_HINT (1 << 0)