OSDN Git Service

vc2enc: prevent random data
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Thu, 5 May 2016 09:06:08 +0000 (11:06 +0200)
committerRostislav Pehlivanov <rpehlivanov@obe.tv>
Fri, 6 May 2016 00:12:51 +0000 (01:12 +0100)
commit9c1aa14bf0b88da9f91dc114519e725cbd69180e
tree98d3564350b84d3465d970d0278275d0bbc2c512
parent7a679e4ac099d05850d923dee235496f12ffdfa1
vc2enc: prevent random data

The slice prefix is 0 in the reference encoder and the decoder ignores it.
Writing 0 there seems like the best temporary solution.

The padding could have contained uninitialized data, but reference VC2
encoders put 0xFF there, hence the memset value.

Overall this allows producing bistreams with no random data for use by fate.
libavcodec/vc2enc.c