[FFmpeg-cvslog] avcodec/mlpenc: use ctx->num_substreams when writing headers
Paul B Mahol
git at videolan.org
Fri Oct 20 18:09:40 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Oct 19 22:13:51 2023 +0200| [98857ece48e248d6a2d05ebbaca12c170b121695] | committer: Paul B Mahol
avcodec/mlpenc: use ctx->num_substreams when writing headers
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=98857ece48e248d6a2d05ebbaca12c170b121695
---
libavcodec/mlpenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 */
More information about the ffmpeg-cvslog
mailing list