diff options
author | wm4 <wm4@nowhere> | 2014-03-07 15:23:03 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-07 15:23:03 +0100 |
commit | 74b7001500c0901b095986fafe7dca3e5c23c7f2 (patch) | |
tree | daee66eb3955ff8bff726b916171a81a4bf0e451 /common/encode.h | |
parent | 4579d9ca58ee50dba6cb45e4f27e85f2ebbb8269 (diff) | |
download | mpv-74b7001500c0901b095986fafe7dca3e5c23c7f2.tar.bz2 mpv-74b7001500c0901b095986fafe7dca3e5c23c7f2.tar.xz |
encode: don't access ao->pts
This field will be moved out of the ao struct. The encoding code was
basically using an invalid way of accessing this field.
Since the AO will be moved into its own thread too and will do its own
buffering, the AO and the playback core might not even agree which
sample a PTS timestamp belongs to. Add some extrapolation code to handle
this case.
Diffstat (limited to 'common/encode.h')
-rw-r--r-- | common/encode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/encode.h b/common/encode.h index a4c7d821d9..7d6cacd86a 100644 --- a/common/encode.h +++ b/common/encode.h @@ -18,6 +18,7 @@ bool encode_lavc_showhelp(struct mp_log *log, struct encode_output_conf *options int encode_lavc_getstatus(struct encode_lavc_context *ctx, char *buf, int bufsize, float relative_position); void encode_lavc_expect_stream(struct encode_lavc_context *ctx, int mt); void encode_lavc_set_video_fps(struct encode_lavc_context *ctx, float fps); +void encode_lavc_set_audio_pts(struct encode_lavc_context *ctx, double pts); bool encode_lavc_didfail(struct encode_lavc_context *ctx); // check if encoding failed #endif |