diff options
author | wm4 <wm4@nowhere> | 2014-11-11 21:20:21 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-11 21:20:21 +0100 |
commit | d4cc41bbcd378d30a3c52c5342c395e7f64539ca (patch) | |
tree | 23d1883cb41ce40d9a33a12a94596e39e625738e /player/osd.c | |
parent | 475226c783cd3ce17a90ee5312727e013b2436cf (diff) | |
download | mpv-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/osd.c')
0 files changed, 0 insertions, 0 deletions