summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-11 21:20:21 +0100
committerwm4 <wm4@nowhere>2014-11-11 21:20:21 +0100
commitd4cc41bbcd378d30a3c52c5342c395e7f64539ca (patch)
tree23d1883cb41ce40d9a33a12a94596e39e625738e /player
parent475226c783cd3ce17a90ee5312727e013b2436cf (diff)
downloadmpv-d4cc41bbcd378d30a3c52c5342c395e7f64539ca.tar.bz2
mpv-d4cc41bbcd378d30a3c52c5342c395e7f64539ca.tar.xz
audio: make sure AVFrame is actually refcounted
The mp_audio_from_avframe() function requires the AVFrame to be refcounted, and merely increases its refcount while referencing the same data. For non-refcounted frames, it simply did nothing and potentially would make the caller pass around a frame with dangling pointers. (libavcodec should always return refcounted frames, but it's not clear what other code does; and also the function should simply work, instead of having weird requirements on its arguments.)
Diffstat (limited to 'player')
0 files changed, 0 insertions, 0 deletions