summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_gpu.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2024-06-13 13:23:35 -0500
committerDudemanguy <random342@airmail.cc>2024-06-13 19:12:29 +0000
commit4ef7931266759560a860e66e01b75622a0a3996b (patch)
tree128a276c89d0b0f432a49df865834be6eab7d8dd /video/filter/vf_gpu.h
parenta900d41b1ec7ab4f190fa79b53b33580616de739 (diff)
downloadmpv-master.tar.bz2
mpv-master.tar.xz
demux_lavf: drop jpeg frames that are at a nonzero posHEADmaster
There are jpg files out there that have extra embedded metadata (pictures from smartphones commonly have an embedded gain map). ffmpeg doesn't currently support this, so mpv currently sees the extra metadata as essentially another frame. This results in weird video-like behavior. Until ffmpeg support this more properly, we can work around this by simply discarding extra packets and not sending the new frame to the internal playloop. If demux_lavf detects that the stream is a single-frame jpg, then we only accepts the packet at pos 0. Anything else is discarded. Ref #13192.
Diffstat (limited to 'video/filter/vf_gpu.h')
0 files changed, 0 insertions, 0 deletions