Commit 56475e88 authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit 'e8030714'

* commit 'e8030714':
  yuv4mpegenc: Use AV_CEIL_RSHIFT where needed
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents 73bd20c4 e8030714
......@@ -209,6 +209,7 @@ static int yuv4_write_packet(AVFormatContext *s, AVPacket *pkt)
// Adjust for smaller Cb and Cr planes
av_pix_fmt_get_chroma_sub_sample(st->codec->pix_fmt, &h_chroma_shift,
&v_chroma_shift);
// Shift right, rounding up
width = AV_CEIL_RSHIFT(width, h_chroma_shift);
height = AV_CEIL_RSHIFT(height, v_chroma_shift);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment