• boyuanxiao-argondesign's avatar
    Fix parsing segmentation data in parse_frame_hdr · 2f7eb1e9
    boyuanxiao-argondesign authored
    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).
    2f7eb1e9
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
src Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
THANKS.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...