summaryrefslogtreecommitdiff
path: root/libavformat/wvenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/wvenc.c')
-rw-r--r--libavformat/wvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wvenc.c b/libavformat/wvenc.c
index 2e150e1a7a..a753c199db 100644
--- a/libavformat/wvenc.c
+++ b/libavformat/wvenc.c
@@ -29,7 +29,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);
}