summaryrefslogtreecommitdiff
path: root/libavcodec/tests/avcodec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/tests/avcodec.c')
-rw-r--r--libavcodec/tests/avcodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tests/avcodec.c b/libavcodec/tests/avcodec.c
index 5d0ff9432c..006fd1ade9 100644
--- a/libavcodec/tests/avcodec.c
+++ b/libavcodec/tests/avcodec.c
@@ -76,7 +76,7 @@ int main(void){
ERR_EXT("Codec %s has unsupported type %s\n",
get_type_string(codec->type));
if (codec->type != AVMEDIA_TYPE_AUDIO) {
- if (codec->channel_layouts || codec->sample_fmts ||
+ if (codec->ch_layouts || codec->sample_fmts ||
codec->supported_samplerates)
ERR("Non-audio codec %s has audio-only fields set\n");
if (codec->capabilities & (AV_CODEC_CAP_SMALL_LAST_FRAME |