summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-10-08 21:28:25 +0000
committerjstebbins <[email protected]>2010-10-08 21:28:25 +0000
commit733d095631957bc9ddcdd30df79761f0171ebd10 (patch)
tree7693ce4a1f540cec97806d29a290e23d6e01f646
parent0c7b1899c95691ebf6ac020c09f6aa37ca9376af (diff)
fix a bug in bitrate selection. forgot to change a '++' to '--'
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3583 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 85a3803e2..09f8031ff 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -86,7 +86,7 @@ int hb_find_closest_audio_bitrate(int bitrate)
// result is highest rate if none found during search.
// rate returned will always be <= rate asked for.
result = hb_audio_bitrates[0].rate;
- for (ii = hb_audio_bitrates_count-1; ii >= 0; ii++)
+ for (ii = hb_audio_bitrates_count-1; ii >= 0; ii--)
{
if (bitrate >= hb_audio_bitrates[ii].rate)
{