diff options
Diffstat (limited to 'libavformat/wvenc.c')
-rw-r--r-- | libavformat/wvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wvenc.c b/libavformat/wvenc.c index b0d74caaec..48e371aa13 100644 --- a/libavformat/wvenc.c +++ b/libavformat/wvenc.c @@ -33,7 +33,7 @@ typedef struct WvMuxContext { static av_cold int wv_write_header(AVFormatContext *ctx) { if (ctx->nb_streams > 1 || - ctx->streams[0]->codec->codec_id != AV_CODEC_ID_WAVPACK) { + ctx->streams[0]->codecpar->codec_id != AV_CODEC_ID_WAVPACK) { av_log(ctx, AV_LOG_ERROR, "This muxer only supports a single WavPack stream.\n"); return AVERROR(EINVAL); } |