| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/audit-util.js"></script> |
| 4 <script src="../../resources/audio-testing.js"></script> | 5 <script src="../../resources/audio-testing.js"></script> |
| 5 <script src="../../resources/buffer-loader.js"></script> | 6 <script src="../../resources/buffer-loader.js"></script> |
| 6 <script src="../../resources/audio-codec-test.js"></script> | 7 <script src="../../resources/audio-codec-test.js"></script> |
| 7 <title></title> | 8 <title></title> |
| 8 </head> | 9 </head> |
| 9 <body> | 10 <body> |
| 10 <script> | 11 <script> |
| 11 (function () { | 12 (function () { |
| 12 | 13 |
| 13 // For certain AAC-encoded files, FFMPEG's estimated frame count might not | 14 // For certain AAC-encoded files, FFMPEG's estimated frame count might not |
| 14 // be sufficient to capture the entire audio content that we want. This is | 15 // be sufficient to capture the entire audio content that we want. This is |
| 15 // especially noticeable for short files (< 10ms) resulting in silence | 16 // especially noticeable for short files (< 10ms) resulting in silence |
| 16 // throughout the decoded buffer. Thus we add the priming frames and the | 17 // throughout the decoded buffer. Thus we add the priming frames and the |
| 17 // remainder frames to the estimation. | 18 // remainder frames to the estimation. |
| 18 // (See: crbug.com/513178) | 19 // (See: crbug.com/513178) |
| 19 var targetUrl = '../../resources/media/440hz-10ms.m4a'; | 20 var targetUrl = '../../resources/media/440hz-10ms.m4a'; |
| 20 | 21 |
| 21 window.onload = function () { | 22 window.onload = function () { |
| 22 runDecodingTest(targetUrl); | 23 runDecodingTest(targetUrl); |
| 23 }; | 24 }; |
| 24 | 25 |
| 25 })(); | 26 })(); |
| 26 </script> | 27 </script> |
| 27 </body> | 28 </body> |
| 28 </html> | 29 </html> |
| OLD | NEW |