avcodec/dnxhdenc: Simplify padding
It is unnecessary to first pad to 32bits; the memset later will pad everything will with zeroes anyway. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b0e0b3c58a
commit
3af6136669
@ -908,8 +908,6 @@ static int dnxhd_encode_thread(AVCodecContext *avctx, void *arg,
|
|||||||
dnxhd_encode_block(pb, ctx, block, last_index, n);
|
dnxhd_encode_block(pb, ctx, block, last_index, n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (put_bits_count(pb) & 31)
|
|
||||||
put_bits(pb, 32 - (put_bits_count(pb) & 31), 0);
|
|
||||||
flush_put_bits(pb);
|
flush_put_bits(pb);
|
||||||
memset(put_bits_ptr(pb), 0, put_bytes_left(pb, 0));
|
memset(put_bits_ptr(pb), 0, put_bytes_left(pb, 0));
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user