X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwvenc.c;h=48e371aa13c7e55c2a7b9c2da566e97f92d0b80f;hb=6372c9dc9972318e75a5889ad6c52500b8294099;hp=b0d74caaec94a207a99ee01c1f4cf4a711c89a74;hpb=ae3c0a9c1f66367586c82e9b48d31bedac3e14aa;p=ffmpeg diff --git a/libavformat/wvenc.c b/libavformat/wvenc.c index b0d74caaec9..48e371aa13c 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); }