1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2026-05-16 08:38:24 +02:00
Files
FFmpeg/libavformat
wm4 96b87d5cfa avformat/mp3dec: improve junk skipping heuristic
Commit 2b3e9bbfb5 caused problems for a
certain API user:

https://code.google.com/p/chromium/issues/detail?id=537725
https://code.google.com/p/chromium/issues/detail?id=542032

The problem seems rather arbitrary, because if there's junk, anything
can happen. In this case, the imperfect junk skipping just caused it to
read different junk, from what I can see.

We can improve the accuracy of junk detection by a lot by checking if 2
consecutive frames use the same configuration. While in theory it might
be completely fine for the 1st frame to have a different format than the
2nd frame, it's exceedingly unlikely, and I can't think of a legitimate
use-case.

This is approximately the same mpg123 does for junk skipping. The
set of compared header bits is the same as the libavcodec mp3 parser
uses for similar purposes.
(cherry picked from commit de1b1a7da9)
2015-10-20 12:35:43 +02:00
..
2015-08-21 04:24:58 +00:00
2015-10-12 21:46:54 +02:00
2015-08-18 10:24:01 -04:00
2015-07-12 12:17:40 +02:00
2015-10-12 21:46:54 +02:00
2015-09-03 12:42:40 +02:00
2015-06-14 15:09:33 +02:00
2015-08-20 12:22:50 +02:00
2015-10-15 14:27:20 +02:00
2015-10-09 21:13:49 +02:00
2015-08-21 04:24:58 +00:00
2015-10-12 21:46:54 +02:00
2015-09-01 14:35:32 +02:00
2015-09-08 22:31:44 +02:00
2015-09-01 22:46:23 +02:00
2015-06-07 21:55:46 +02:00
2015-09-01 13:35:37 +02:00
2015-06-22 10:47:29 +03:00