Commit 224e451c authored by Frank Bossen's avatar Frank Bossen Committed by Luca Barbato

Do not write restoration parameters when the feature is disabled

parent ed3cf834
......@@ -1173,9 +1173,7 @@ impl<W: io::Write> UncompressedHeader for BitWriter<W, BigEndian> {
}
fn write_frame_lrf(&mut self, seq: &Sequence, fi: &FrameInvariants) -> io::Result<()> {
if !seq.enable_restoration || fi.allow_intrabc { // || self.lossless
self.write(6,0)?; // no y, u or v loop restoration
} else {
if seq.enable_restoration && !fi.allow_intrabc { // && !self.lossless
let mut use_lrf = false;
let mut use_chroma_lrf = false;
for i in 0..PLANES {
......
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