From f2118d44c9f18b3245bec2415c563d94201dcf5a Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Mon, 29 Jul 2013 17:52:40 +0200 Subject: Fix compilation with --disable-everything --enable-shared. Compilation with --disable-everything --enable-shared failed on systems with VAAPI support with the following undefined symbol in libavcodec/vaapi.o: libavcodec/libavcodec.so: undefined reference to `ff_mpeg_draw_horiz_band' --- libavcodec/vaapi.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'libavcodec/vaapi.c') diff --git a/libavcodec/vaapi.c b/libavcodec/vaapi.c index 94959bf5ed..db4d29dbbc 100644 --- a/libavcodec/vaapi.c +++ b/libavcodec/vaapi.c @@ -197,26 +197,4 @@ void ff_vaapi_common_end_frame(AVCodecContext *avctx) vactx->slice_params_alloc = 0; } -int ff_vaapi_mpeg_end_frame(AVCodecContext *avctx) -{ - struct vaapi_context * const vactx = avctx->hwaccel_context; - MpegEncContext *s = avctx->priv_data; - int ret; - - ret = ff_vaapi_commit_slices(vactx); - if (ret < 0) - goto finish; - - ret = ff_vaapi_render_picture(vactx, - ff_vaapi_get_surface_id(s->current_picture_ptr)); - if (ret < 0) - goto finish; - - ff_mpeg_draw_horiz_band(s, 0, s->avctx->height); - -finish: - ff_vaapi_common_end_frame(avctx); - return ret; -} - /* @} */ -- cgit v1.2.3