Commit 2f7eb1e9 authored by Committed by Ronald S. Bultje
Fix parsing segmentation data in parse_frame_hdr
The first memset is dead code: if primary_ref_frame is PRIMARY_REF_NONE then segmentation.update_data is always true. The patch removes this memset and explains why the copy in the other branch is correct. The second memset should always fire: if segmentation is not enabled for this frame, the seg_data structure should be set to zero rather than copied from a reference frame (see section 5.9.14 of the AV1 spec).
Showing with 4 additions and 8 deletions