summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-24 08:36:40 +0100
committerwm4 <wm4@nowhere>2017-01-24 08:36:40 +0100
commitf762fc42308590c609a42d23c1f2d75091acdcee (patch)
tree59bdc24bb39de0caf23c95ac6508f8db5c756307 /demux
parentd16ba1f7f6f95f4f2116ae75e939a732592334d0 (diff)
downloadmpv-f762fc42308590c609a42d23c1f2d75091acdcee.tar.bz2
mpv-f762fc42308590c609a42d23c1f2d75091acdcee.tar.xz
av_common: remove old/unused timestamp passthrough code
This attempted to pass through double float timestamps in a bit exact way by reinterpret casting them to int64_t. This usually worked, because libavcodec (in decoding mode) is mostly not allowed to interpret timestamps. libavcodec doesn't even know the unit of the timestamps, unless the API user sets a timebase. We've stopped doing this, and always set a timebase. Only ad_spdif.c still used this (indirectly through mp_set_av_packet()), but doesn't actually need timestamps on the packet. In fact, it's already explicitly setting the packet timestamp fields to 0 before passing it to FFmpeg API. This code is unused, and the passthrough method wasn't terribly elegant to begin with. Drop this code. Arbitrarily use AV_TIME_BASE_Q as fallback in situations the passthrough was used.
Diffstat (limited to 'demux')
0 files changed, 0 insertions, 0 deletions