OSDN Git Service

fix detectsion of bitrate_code for ac3 passthru in mp4
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 9 Oct 2010 16:34:21 +0000 (16:34 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 9 Oct 2010 16:34:21 +0000 (16:34 +0000)
ac3 passthru and encode are slightly different since
audio->config.in.bitrate is in bps and audio->config.out.bitrate is kbps

git-svn-id: svn://localhost/HandBrake/trunk@3587 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/muxmp4.c

index 6fdf789..3580a54 100644 (file)
@@ -262,7 +262,7 @@ rate_found1:
             sr_code = jj;
             for (ii = 0; ii < 19; ii++)
             {
-                if ((ac3_bitrate_tab[ii] >> sr_shift) == bitrate)
+                if ((ac3_bitrate_tab[ii] >> sr_shift)*1000 == bitrate)
                     break;
             }
             if ( ii >= 19 )