Add unit test to ensure mp3 with trailing garbage decodes okay.
The mp3 bitstream is not well-formed, it's essentially just an aggergation of raw mp3 packets. Common practice (including our own MP3 demuxer in MSE) is to scan the input bitstream for things that look like mp3 packets and decode only those while discarding the rest. ffmpeg had a bug where they did not properly discard junk from the end of the file (despite discarding it everywhere else), this adds a test to ensure it does not regress. BUG=794782 TEST=new unittest Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I322e22fef3ebfa585369edb9d2c5d2ae2bb3afb4 Reviewed-on: https://chromium-review.googlesource.com/935143Reviewed-by:Xiaohan Wang <xhwang@chromium.org> Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#539263}
Showing
File added
Please register or sign in to comment