diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-04-14 17:00:35 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-04-14 17:00:35 +0300 |
commit | 34c2eea3d8ec85de4f4e5a9085c174e4b09387b9 (patch) | |
tree | 21defd9a5eec6249346e631e2a1933460acb2579 /libavcodec/dnxhdenc.c | |
parent | 3f1c527bf55537eb15da4c1384c0f4a08b08e1f3 (diff) |
avcodec/dnxhdenc: make sure that mb_height > 255 can be stored
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/dnxhdenc.c')
-rw-r--r-- | libavcodec/dnxhdenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |