1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00
mpv/video/decode
wm4 7100a10127 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.
2013-10-31 18:17:14 +01:00
..
dec_video.c video: handle video output levels with mp_image_params 2013-08-24 19:40:18 +02:00
dec_video.h dec_video: remove unused declaration of a former global variable 2013-10-31 18:17:13 +01:00
lavc_dr1.c vdpau: split off decoder parts, use "new" libavcodec vdpau hwaccel API 2013-07-28 19:25:07 +02:00
lavc.h vaapi: allow GPU read-back with --hwdec=vaapi-copy 2013-09-25 13:53:42 +02:00
vaapi.c vaapi: remove non-VLD entrypoints 2013-09-29 13:52:09 +02:00
vd_lavc.c vd_lavc: add more ifdeffery and ffmpeg cargo culting for correctness 2013-10-31 18:17:14 +01:00
vd.c video: let sh_video->disp_w/h always be container size 2013-09-26 17:33:57 +02:00
vd.h cosmetics: replace "CTRL" defines by enums 2013-10-02 21:19:16 +02:00
vda.c video: add vda decode support (with hwaccel) and direct rendering 2013-08-22 12:13:30 +02:00
vdpau_old.c vdpau_old: restore hardware decoding with old API 2013-10-19 20:57:43 +02:00
vdpau.c vdpau: don't try to match codec profiles 2013-08-19 01:05:48 +02:00