diff options
author | Matt Oliver <protogonoi@gmail.com> | 2015-01-10 22:19:08 +1100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-10 21:10:02 +0100 |
commit | 87deebe11a3a9e36472e826f79e09e3b1d112924 (patch) | |
tree | a485b6e46d2c920b95360770da3563ec8555d073 | |
parent | 09b4ad15681be197fff8c57ce7c988a4718d6e03 (diff) | |
download | ffmpeg-87deebe11a3a9e36472e826f79e09e3b1d112924.tar.gz |
avcodec/libvpxenc.c: Fix linking with codec interface with msvc.
Default libvpx msvc buils used module definition to export symbols.
These symbols are exported as pointers to data which dont link when
referenced directly.
Reviewed-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/libvpxenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index c69acc00ef..4cb0e21458 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -855,7 +855,7 @@ static const AVCodecDefault defaults[] = { #if CONFIG_LIBVPX_VP8_ENCODER static av_cold int vp8_init(AVCodecContext *avctx) { - return vpx_init(avctx, &vpx_codec_vp8_cx_algo); + return vpx_init(avctx, vpx_codec_vp8_cx()); } static const AVClass class_vp8 = { @@ -884,7 +884,7 @@ AVCodec ff_libvpx_vp8_encoder = { #if CONFIG_LIBVPX_VP9_ENCODER static av_cold int vp9_init(AVCodecContext *avctx) { - return vpx_init(avctx, &vpx_codec_vp9_cx_algo); + return vpx_init(avctx, vpx_codec_vp9_cx()); } static const AVClass class_vp9 = { |