[FFmpeg-cvslog] avcodec/dnxhdenc: make sure that mb_height > 255 can be stored

Paul B Mahol git at videolan.org
Fri Apr 14 17:13:43 EEST 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Apr 14 16:00:35 2017 +0200| [34c2eea3d8ec85de4f4e5a9085c174e4b09387b9] | committer: Paul B Mahol

avcodec/dnxhdenc: make sure that mb_height > 255 can be stored

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=34c2eea3d8ec85de4f4e5a9085c174e4b09387b9
---

 libavcodec/dnxhdenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index 665a992706..35fa77794a 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
@@ -582,7 +582,7 @@ static int dnxhd_write_header(AVCodecContext *avctx, uint8_t *buf)
 
     buf[0x167] = 0x02; // reserved
     AV_WB16(buf + 0x16a, ctx->m.mb_height * 4 + 4); // MSIPS
-    buf[0x16d] = ctx->m.mb_height; // Ns
+    AV_WB16(buf + 0x16c, ctx->m.mb_height); // Ns
     buf[0x16f] = 0x10; // reserved
 
     ctx->msip = buf + 0x170;



More information about the ffmpeg-cvslog mailing list