summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-04-19 17:42:14 +0200
committerwm4 <wm4@nowhere>2018-04-19 23:22:48 +0200
commitff24285eb15676dc7519b858be01a1def155e847 (patch)
treeda962345d8d33108c0b096c3aaeec6cbc41fe25c /video/mp_image.h
parente7e06a47a0b5626c3abe81f3627d10ed58d92d3b (diff)
downloadmpv-ff24285eb15676dc7519b858be01a1def155e847.tar.bz2
mpv-ff24285eb15676dc7519b858be01a1def155e847.tar.xz
video: pass through container fps to filters
This means vf_vapoursynth doesn't need a hack to work around the filter code, and libavfilter filters now actually get the frame_rate field on input pads set. The libavfilter doxygen says the frame_rate field is only to be set if the frame rate is known to be constant, and uses the word "must" (which probably means they really mean it?) - but ffmpeg.c sets the field to mere guesses anyway, and it looks like this normally won't lead to problems.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r--video/mp_image.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h
index 88e261306f..70e9b9e138 100644
--- a/video/mp_image.h
+++ b/video/mp_image.h
@@ -105,6 +105,8 @@ typedef struct mp_image {
double pts;
/* only after decoder */
double dts, pkt_duration;
+ /* container reported FPS; can be incorrect, or 0 if unknown */
+ double nominal_fps;
/* for private use */
void* priv;