mirror of https://github.com/mpv-player/mpv
0a7c5a130e
The same should happen with any other side data that matters to mpv, otherwise filters will drop it. (No, don't try to argue that mpv should use AVFrame. That won't work.) ffmpeg_garbage() is copy&paste from frame_new_side_data() in FFmpeg (roughly feed201849b8f91), because it's not public API. The name reflects my opinion about FFmpeg's API. In mp_image_to_av_frame(), change the too-fragile *new_ref = (struct mp_image){0}; into explicitly zeroing out the fields that are "transferred" to the created AVFrame. |
||
---|---|---|
.. | ||
d3d.c | ||
d3d.h | ||
dec_video.c | ||
dec_video.h | ||
hw_d3d11va.c | ||
hw_dxva2.c | ||
hw_mediacodec.c | ||
hw_videotoolbox.c | ||
lavc.h | ||
vd.h | ||
vd_lavc.c |