Skip to content

Commit

Permalink
avcodec/dnxhdenc: make sure that mb_height > 255 can be stored
Browse files Browse the repository at this point in the history
Signed-off-by: Paul B Mahol <[email protected]>
  • Loading branch information
richardpl committed Apr 14, 2017
1 parent 3f1c527 commit 34c2eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/dnxhdenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 34c2eea

Please sign in to comment.