Commit 8465c938 authored by James Zern's avatar James Zern
Browse files

tools_common: fix build w/encoders/decoders disabled

gcc-based builds will allow a 0-element array, but visual studio builds
will not; this change hides the encoder and decoder specific symbols as
modules using them are selected based on the configuration.

Change-Id: Ic16ba9d12241070ec689dc5880164c14a4f7ca44
parent 1d723572
......@@ -130,6 +130,8 @@ int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame) {
return shortread;
static const VpxInterface vpx_encoders[] = {
{"vp8", VP8_FOURCC, &vpx_codec_vp8_cx},
......@@ -160,6 +162,10 @@ const VpxInterface *get_vpx_encoder_by_name(const char *name) {
return NULL;
static const VpxInterface vpx_decoders[] = {
{"vp8", VP8_FOURCC, &vpx_codec_vp8_dx},
......@@ -202,6 +208,8 @@ const VpxInterface *get_vpx_decoder_by_fourcc(uint32_t fourcc) {
return NULL;
// TODO(dkovalev): move this function to vpx_image.{c, h}, so it will be part
// of vpx_image_t support
int vpx_img_plane_width(const vpx_image_t *img, int plane) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment