summaryrefslogtreecommitdiffstats
path: root/video/decode/lavc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-16 14:54:21 +0100
committerwm4 <wm4@nowhere>2014-03-16 14:54:21 +0100
commit269c1e1f41f6daf4ff17ffd47f5dfe78884b8ec7 (patch)
tree34b017d3e02ebc04c53919c4e452586b608f6848 /video/decode/lavc.h
parent61f3b188a57aac400829efac1ec6aa8978d28687 (diff)
downloadmpv-269c1e1f41f6daf4ff17ffd47f5dfe78884b8ec7.tar.bz2
mpv-269c1e1f41f6daf4ff17ffd47f5dfe78884b8ec7.tar.xz
vd_lavc: reduce hardware decoder mid-stream reinitializations
Instead of doing it on every seek (libavcodec calls get_format on every seek), reinitialize the decoder only if the video resolution changes. Note that this may be relatively naive, since we e.g. (or: in particular) don't check for profile changes. But it's not worse than the state before the get_format change, and at least it paints over the current vaapi breakage (issue #646).
Diffstat (limited to 'video/decode/lavc.h')
0 files changed, 0 insertions, 0 deletions