diff options
author | wm4 <wm4@nowhere> | 2013-10-31 18:12:39 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-02 19:06:10 +0100 |
commit | 3ac568714c385ddc6e2a87bbd74f3ac7faad6d68 (patch) | |
tree | aaa849d1d89d276a2350dcc0dfd5676ce7824bc8 /stream/tvi_v4l2.c | |
parent | d64b165b2a3ac2ece7be5a1bfd7a172a23a660bd (diff) | |
download | mpv-3ac568714c385ddc6e2a87bbd74f3ac7faad6d68.tar.bz2 mpv-3ac568714c385ddc6e2a87bbd74f3ac7faad6d68.tar.xz |
vd_lavc: add more ifdeffery and ffmpeg cargo culting for correctness
We mixed the "old" AVFrame management functions (avcodec_alloc_frame,
avcodec_free_frame) with reference counting. This doesn't work
correctly; you must use av_frame_alloc and av_frame_free. Of course
ffmpeg doesn't warn us about the bad usage, but will just mess up
things silently. (Thanks a lot...)
While the alloc function seems to be 100% compatible, the free function
will do bad things, such as freeing memory that might still be
referenced by another frame. I didn't experience any actual bugs, but
maybe that was pure luck.
Diffstat (limited to 'stream/tvi_v4l2.c')
0 files changed, 0 insertions, 0 deletions