]> granicus.if.org Git - libass/commit
directwrite: slightly clean up the code
authorOleg Oshmyan <chortos@inbox.lv>
Thu, 29 Oct 2015 23:33:30 +0000 (01:33 +0200)
committerOleg Oshmyan <chortos@inbox.lv>
Fri, 30 Oct 2015 01:50:53 +0000 (03:50 +0200)
commit7ff5f49e30b91f8ac3e707896ee1fed83dcca170
treec8d34e844653ea61c09d7a52a13285f5d7e13232
parent488070876efea2c28ff3e3945c4568c3d831a254
directwrite: slightly clean up the code

  * Metrics are not used, so don't fetch them.
  * All variables except meta are always explicitly set before use,
    so don't initialize them.
  * Declare variables where they are used.
  * Use int loop variables when the loop bound is int.
  * Prefer post-increment to pre-increment.
libass/ass_directwrite.c