vf_lavc: fix compilation with latest libav
commitf5e0365c8e76e2ef797027134f1819e613764d7e
authorAnton Khirnov <anton@khirnov.net>
Wed, 19 Sep 2012 12:00:01 +0000 (19 14:00 +0200)
committerUoti Urpala <uau@mplayer2.org>
Wed, 19 Sep 2012 14:15:59 +0000 (19 17:15 +0300)
tree16673bd0a8a541a228837c54b10ba8e904ee629c
parent506c62851a00521d7f38966bb0766dd6cb761e87
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.
libmpcodecs/vf_lavc.c