proresenc: Write the full value in one put_bits call
authorMartin Storsjö <martin@martin.st>
Tue, 4 Sep 2012 11:31:52 +0000 (14:31 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 4 Sep 2012 12:31:47 +0000 (15:31 +0300)
commit6d9e74cd4179f42a8fa860f2e08d370c7c36325f
treee41e0185a7c11a46ad2b80bd4b1912823307fa0b
parentaa264da5bf6a3d82a47abba4cfcfa629dd1f3daa
proresenc: Write the full value in one put_bits call

Previously, the put_bits call writing the value wrote a value
larger than the number of bits specified, failing asserts
in debug mode. There was no actual bitstream writer corruption,
since the overwritten bit already always was set to 1.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/proresenc.c