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