flacenc: ensure the order is within the min/max range in LPC order search
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 7 Nov 2012 19:48:28 +0000 (14:48 -0500)
committerReinhard Tartler <siretart@tauware.de>
Sat, 12 Jan 2013 18:20:27 +0000 (19:20 +0100)
commit3d0c9c9af687fd2dd4fbaefdb4d7d85c59f7d19f
tree67cfe7d910ef36f11366f499a766a50adc122c5b
parentf3f22f183fa298f73b1c6a27a19436a22d7ff23a
flacenc: ensure the order is within the min/max range in LPC order search

This fixes use of uninitialized values when the FLAC encoder uses the
2-level, 4-level, and 8-level search methods. Fixes failure of the
fate-flac-24-comp-8 test when run using valgrind.
(cherry picked from commit 3a2731cbd31d0c5681ddbc7c78edd5c53c4d0032)

Conflicts:

libavcodec/flacenc.c

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/flacenc.c