Use a predictable RNG when adding noise to low-bitrate images.
authorCarl Hetherington <cth@carlh.net>
Mon, 1 Feb 2021 16:46:22 +0000 (17:46 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 1 Feb 2021 22:44:36 +0000 (23:44 +0100)
commit49b655d3e1937018c46ed7f6a62e1157b247e426
tree45b4b6562e2575a458da5fef8a38af1437458ab6
parente50967fb2b67b76e139f11206994bc0505cab76c
Use a predictable RNG when adding noise to low-bitrate images.

The recovery code assumes that encoding a given frame from the
same data will always give the same output; it always encodes frame 0
again to set things up properly and if that frame is a different size
to the previous run everything breaks.
src/lib/dcp_video.cc
src/lib/rng.cc [new file with mode: 0644]
src/lib/rng.h [new file with mode: 0644]
src/lib/wscript
test/torture_test.cc
test/video_level_test.cc