]> granicus.if.org Git - libvpx/commit
fixed a crash caused invalid Q choice
authorYaowu Xu <yaowu@google.com>
Thu, 8 Dec 2011 04:08:31 +0000 (20:08 -0800)
committerYaowu Xu <yaowu@google.com>
Thu, 8 Dec 2011 15:04:23 +0000 (07:04 -0800)
commitebcc6605c1bd224fcb26494d74a1db81e981f3ab
treeaa8ebbf0e0e6e26db54a7f53e61d6c0ec4678e3d
parentb70f23caec2b06fc7e71b124e0fe8802d1c19ba7
fixed a crash caused invalid Q choice

The commit fixed a problem by capping cpi->active_best_quality to be
smaller than cpi->worst_quality.  Also fixed a few line of code that
was misplaced.

Change-Id: Ie908264b72140c669122a0afde5d886619c33474
vp8/encoder/onyx_if.c
vp8/encoder/quantize.c