summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-07-01 15:51:34 +0200
committerwm4 <wm4@nowhere>2016-07-01 15:51:34 +0200
commit614efea3e67a435f3330820c3dc8b402535641e8 (patch)
tree6dd6372798a520b7336ed0d99e120c732dadac7a /DOCS
parentc57304a591d46df490e1584b1a3c9cda1ff91b44 (diff)
downloadmpv-614efea3e67a435f3330820c3dc8b402535641e8.tar.bz2
mpv-614efea3e67a435f3330820c3dc8b402535641e8.tar.xz
ad_lavc: work around braindead ffmpeg behavior
The libavcodec wmapro decoder will skip some bytes at the start of the first packet and return each time. It will not return any audio data in this state. Our own code as well as libavcodec's new API handling (avcodec_send_packet() etc.) discard the PTS on the first return, which means the PTS is never known for the first packet. This results in a "Failed audio resync." message. Fixy it by remember the PTS in next_pts. This field is used only if the decoder outputs no PTS, and is updated after each frame - and thus should be safe to set. (Possibly this should be fixed in libavcodec new API handling by not setting the PTS to NOPTS as long as no real data has been output. It could even interpolate the PTS if the timebase is known.) Fixes the failure message seen in #3297.
Diffstat (limited to 'DOCS')
0 files changed, 0 insertions, 0 deletions