Fix the incorrect filter setting 74/238574/3 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.105807 accepted/tizen/6.0/unified/hotfix/20201102.234826 accepted/tizen/6.0/unified/hotfix/20201103.050049 accepted/tizen/unified/20200717.124643 submit/tizen/20200716.225242 submit/tizen_6.0/20201029.205502 submit/tizen_6.0_hotfix/20201102.192902 submit/tizen_6.0_hotfix/20201103.115102 tizen_6.0.m2_release
authorjiyong.min <jiyong.min@samsung.com>
Wed, 15 Jul 2020 07:38:09 +0000 (16:38 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Thu, 16 Jul 2020 00:02:17 +0000 (09:02 +0900)
commitd02a60180fb1414c6ad2143456f49bf1b34e64fc
tree9d5ff34966084b56d814e63f7bc441a2fe499e1d
parent372096d895a747ce9e1fc5a89a8868a35c29eed3
Fix the incorrect filter setting

  - 'switch~case' in 'png_set_filter()' is dead code.
  'switch~case' updated the value of 'do_filter' using 'filters'.
  However 'do_filter' is overwritten with the 'filters' after few lines.
  So 'switch~case' became dead code, it make filter setting error.

  e.g.
  if 'filters' was #PNG_FILTER_VALUE_NONE(0x00), 'do_filter' updated
  #PNG_FILTER_NONE(0x08) after 'switch~case'. However 'do_filter' is
  overwritten with 'filters' at 1155 line. So 'do_filter' is changed
  from 0x08 to 0x00 again. It make set the incorrect filter.

Change-Id: I418ce626193f7f1225a10f6c9bdd57e102fbdb53
pngwrite.c