On Sat, Feb 20, 2016 at 11:39 AM, James Almer <jamr...@gmail.com> wrote: > On 2/20/2016 4:26 PM, James Zern wrote: >> with older versions of libvpx >> since: >> 432be63 lavc/libvpx: Fix support for RGB colorspace. >> >> Signed-off-by: James Zern <jz...@google.com> >> --- >> libavcodec/libvpxenc.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c >> index 1239103..b1114bc 100644 >> --- a/libavcodec/libvpxenc.c >> +++ b/libavcodec/libvpxenc.c >> @@ -278,7 +278,9 @@ static int set_pix_fmt(AVCodecContext *avctx, >> vpx_codec_caps_t codec_caps, >> struct vpx_codec_enc_cfg *enccfg, vpx_codec_flags_t >> *flags, >> vpx_img_fmt_t *img_fmt) >> { >> +#if VPX_IMAGE_ABI_VERSION >= 3 >> VP8Context *ctx = avctx->priv_data; >> +#endif > > Can't you just use the av_unused attribute? >
Good point, that's simpler. Applied with that change. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel