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

pull/390/head
Paul B Mahol 1 year ago
parent 94abb4df32
commit 98857ece48
  1. 2
      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, 16, 0 ); /* ignored */
put_bits(&pb, 1, 1 ); /* is_vbr */ put_bits(&pb, 1, 1 ); /* is_vbr */
put_bits(&pb, 15, ctx->coded_peak_bitrate ); 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 ); /* ignored */
put_bits(&pb, 2, 0 ); /* extended substream info */ put_bits(&pb, 2, 0 ); /* extended substream info */

Loading…
Cancel
Save