avcodec/mlpenc: use ctx->num_substreams when writing headers

This commit is contained in:
Paul B Mahol 2023-10-19 22:13:51 +02:00
parent 94abb4df32
commit 98857ece48
1 changed files with 1 additions and 1 deletions

View File

@ -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 */