• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

githubのコードからのfolk


コミットメタ情報

リビジョンaee8506fcadddaa1ed56d659571f8b2b13b4e15c (tree)
日時2010-10-09 10:51:28
作者jstebbins <jstebbins@b64f...>
コミッターjstebbins

ログメッセージ

fix detection of sr_code and bitrate_code for ac3 streams in mp4

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

変更サマリ

差分

--- a/libhb/muxmp4.c
+++ b/libhb/muxmp4.c
@@ -251,20 +251,18 @@ static int MP4Init( hb_mux_object_t * m )
251251 {
252252 if ((ac3_sample_rate_tab[jj] >> ii) == freq)
253253 {
254- break;
254+ goto rate_found1;
255255 }
256256 }
257257 }
258- if ( ii >= 3 )
259- {
260- hb_error("Unknown AC3 samplerate");
261- ii = jj = 0;
262- }
258+ hb_error("Unknown AC3 samplerate");
259+ ii = jj = 0;
260+rate_found1:
263261 sr_shift = ii;
264262 sr_code = jj;
265263 for (ii = 0; ii < 19; ii++)
266264 {
267- if ((ac3_bitrate_tab[ii] >> sr_shift)*1000 == bitrate)
265+ if ((ac3_bitrate_tab[ii] >> sr_shift) == bitrate)
268266 break;
269267 }
270268 if ( ii >= 19 )
@@ -319,21 +317,19 @@ static int MP4Init( hb_mux_object_t * m )
319317 {
320318 if ((ac3_sample_rate_tab[jj] >> ii) == freq)
321319 {
322- break;
320+ goto rate_found2;
323321 }
324322 }
325323 }
326- if ( ii >= 3 )
327- {
328- hb_error("Unknown AC3 samplerate");
329- ii = jj = 0;
330- }
324+ hb_error("Unknown AC3 samplerate");
325+ ii = jj = 0;
326+rate_found2:
331327 sr_shift = ii;
332328 sr_code = jj;
333329 bsid = 8 + ii;
334330 for (ii = 0; ii < 19; ii++)
335331 {
336- if ((ac3_bitrate_tab[ii] >> sr_shift)*1000 == bitrate)
332+ if ((ac3_bitrate_tab[ii] >> sr_shift) == bitrate)
337333 break;
338334 }
339335 if ( ii >= 19 )