diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-10-19 22:13:51 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-10-20 17:07:23 +0200 |
commit | 98857ece48e248d6a2d05ebbaca12c170b121695 (patch) | |
tree | ac552a8c9494c5ceb069189c48a1993048a99863 | |
parent | 94abb4df325f2a903aca62020e00dd9e79205517 (diff) | |
download | ffmpeg-98857ece48e248d6a2d05ebbaca12c170b121695.tar.gz |
avcodec/mlpenc: use ctx->num_substreams when writing headers
-rw-r--r-- | libavcodec/mlpenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c index 4a3d466ba7..031a68449a 100644 --- a/libavcodec/mlpenc.c +++ b/libavcodec/mlpenc.c @@ -667,7 +667,7 @@ static void write_major_sync(MLPEncodeContext *ctx, uint8_t *buf, int buf_size) put_bits(&pb, 16, 0 ); /* ignored */ put_bits(&pb, 1, 1 ); /* is_vbr */ put_bits(&pb, 15, ctx->coded_peak_bitrate ); - put_bits(&pb, 4, 1 ); /* num_substreams */ + put_bits(&pb, 4, ctx->num_substreams ); put_bits(&pb, 2, 0 ); /* ignored */ put_bits(&pb, 2, 0 ); /* extended substream info */ |