From 3ec7f528c4af6efa9f5b5951a25ea4c6311741b5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 16 Mar 2014 09:21:21 +0100 Subject: vd_lavc: remove compatibility crap All this code was needed for compatibility with very old libavcodec versions only (such as Libav 9). Includes some now-possible simplifications too. --- video/mp_image.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'video/mp_image.c') diff --git a/video/mp_image.c b/video/mp_image.c index 44ee0cfedb..8b79489f31 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -600,8 +600,6 @@ void mp_image_copy_fields_to_av_frame(struct AVFrame *dst, #endif } -#if HAVE_AVUTIL_REFCOUNTING - static void frame_free(void *p) { AVFrame *frame = p; @@ -659,5 +657,3 @@ struct AVFrame *mp_image_to_av_frame_and_unref(struct mp_image *img) talloc_free(new_ref); return frame; } - -#endif /* HAVE_AVUTIL_REFCOUNTING */ -- cgit v1.2.3