]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/wvenc.c
Merge commit '5b9cdf8cba114c41239bf0f9f5e0ccb6977d1c8d'
[ffmpeg] / libavformat / wvenc.c
index b0d74caaec94a207a99ee01c1f4cf4a711c89a74..48e371aa13c7e55c2a7b9c2da566e97f92d0b80f 100644 (file)
@@ -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);
     }