From d04aa5ef4e12f5bee3343e833e1209774e9204d9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 Apr 2016 15:33:53 +0200 Subject: mp_image: add mp_image_to_av_frame() What mp_image_to_av_frame_and_unref() should have been. (The _unref variant is still useful though.) --- video/mp_image.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/mp_image.h') diff --git a/video/mp_image.h b/video/mp_image.h index c96674b290..c808b5cf07 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -159,6 +159,7 @@ void mp_image_copy_fields_from_av_frame(struct mp_image *dst, void mp_image_copy_fields_to_av_frame(struct AVFrame *dst, struct mp_image *src); struct mp_image *mp_image_from_av_frame(struct AVFrame *av_frame); +struct AVFrame *mp_image_to_av_frame(struct mp_image *img); struct AVFrame *mp_image_to_av_frame_and_unref(struct mp_image *img); void memcpy_pic(void *dst, const void *src, int bytesPerLine, int height, -- cgit v1.2.3