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.
This commit is contained in:
Anton Khirnov 2012-09-19 14:00:01 +02:00 committed by wm4
parent 6fb0e6bf1c
commit 60496c9e99
1 changed files with 0 additions and 5 deletions

View File

@ -76,11 +76,6 @@ static int config(struct vf_instance *vf,
return 0; 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); return vf_next_config(vf,width,height,d_width,d_height,flags,IMGFMT_MPEGPES);
} }