diff --git a/libavformat/a64.c b/libavformat/a64.c index 03679b2838..a7f93a27b1 100644 --- a/libavformat/a64.c +++ b/libavformat/a64.c @@ -40,7 +40,7 @@ static int a64_write_header(AVFormatContext *s) return AVERROR_INVALIDDATA; } - switch (avctx->codec->id) { + switch (avctx->codec_id) { case AV_CODEC_ID_A64_MULTI: header[2] = 0x00; header[3] = AV_RB32(avctx->extradata+0);