summaryrefslogtreecommitdiffstats
path: root/video/decode/lavc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-03 21:29:56 +0100
committerwm4 <wm4@nowhere>2016-02-03 21:29:56 +0100
commit1b6a191ea3ba4af3c89db98419b5eae899fedcb9 (patch)
tree9ece13b63a7b82b57d9acec2b0858d58acf30e51 /video/decode/lavc.h
parent35bdb63952b50b634121ee49446294861766e72d (diff)
downloadmpv-1b6a191ea3ba4af3c89db98419b5eae899fedcb9.tar.bz2
mpv-1b6a191ea3ba4af3c89db98419b5eae899fedcb9.tar.xz
vd_lavc: force microsecond timestamps on RPI
Avoids "problems". In particular, it makes MMAL output a NOPTS timestamp if the input timestamp was NOPTS. Don't do it for other decoders. Ideally, we will at some point in the future switch to integer fractions for timestamps at least up until the filter layer. But this would be a larger change, and for now I'd prefer keeping the not-rounded demuxer timestamps (if we have them).
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r--video/decode/lavc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h
index d225195c9d..e9174302b9 100644
--- a/video/decode/lavc.h
+++ b/video/decode/lavc.h
@@ -17,6 +17,7 @@ typedef struct lavc_ctx {
AVCodecContext *avctx;
AVFrame *pic;
struct vd_lavc_hwdec *hwdec;
+ AVRational codec_timebase;
enum AVPixelFormat pix_fmt;
int best_csp;
enum AVDiscard skip_frame;