aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs
diff options
context:
space:
mode:
authorGravatar Anton Khirnov <anton@khirnov.net>2012-09-19 14:00:01 +0200
committerGravatar wm4 <wm4@nowhere>2012-09-29 19:56:13 +0200
commit60496c9e99e281ca161e355608dbea7edf1eff7d (patch)
tree28620ef1c2c8b048a3b4d54600483eec34765979 /libmpcodecs
parent6fb0e6bf1c8312555cc8e29ef3513e0dc5a848fe (diff)
vf_lavc: fix compilation with latest libav
Remove a pointless and broken check for avctx->codec->encode. 1) The check does not test for anything useful. 2) AVCodecContext.encode is a private field and is not supposed to be accessed from outside of lavc. 2a) AVCodecContext.encode does not exist anymore in latest libavcodec, so this block fails to build.
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_lavc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libmpcodecs/vf_lavc.c b/libmpcodecs/vf_lavc.c
index b2c1dd756d..65e93a16cc 100644
--- a/libmpcodecs/vf_lavc.c
+++ b/libmpcodecs/vf_lavc.c
@@ -76,11 +76,6 @@ static int config(struct vf_instance *vf,
return 0;
}
- if (lavc_venc_context.codec->encode == NULL) {
- mp_msg(MSGT_VFILTER,MSGL_ERR,"avcodec init failed (ctx->codec->encode == NULL)!\n");
- return 0;
- }
-
return vf_next_config(vf,width,height,d_width,d_height,flags,IMGFMT_MPEGPES);
}