Граф коммитов

80 Коммитов

Автор SHA1 Сообщение Дата
alwu 532535f040 Bug 1634489 - part3 : update ID3 link to ID3v2.4. r=jya
We've been using `footer` which is an attribute from v2.4, so we should keep the link up to date as well.

Differential Revision: https://phabricator.services.mozilla.com/D98653
2020-12-04 01:53:31 +00:00
alwu 28ab67bbfa Bug 1634489 - part1 : allow ID3 parser to parse multiple ID3 headers and store the latest one. r=jya
Most of time, mp3 file should only have one or none ID3v2 header, but sometime we can see a file incorrectly containing multiple ID3v2 headers where the second one is following by the first one.

Therefore, in this situation, we should keep parsing following ID3v2 header, even if we've parsed one, and report multiple headers size together in order to skip correct offset for finding the correct first frame.

Differential Revision: https://phabricator.services.mozilla.com/D98651
2020-12-04 01:51:35 +00:00
Razvan Maries ad08fd8438 Backed out 2 changesets (bug 1669503) for crashing in mozilla::MP3TrackDemuxer::GetNextFrame. a=backout DONTBUILD
Backed out changeset 863ecb9b15d5 (bug 1669503)
Backed out changeset d5cbc458d318 (bug 1669503)
2020-11-06 11:28:35 +02:00
Jean-Yves Avenard f8210c4ae7 Bug 1669503 - Handle mp3 encoder padding when the padding duration spans more than one packet. r=jya
We can't handle this at the decoder level, because the decoder doesn't know that
a particular packet it's seeing is the second to last packet and it should start
trimming the end of this packet because the encoder padding spans multiple
packet.

Differential Revision: https://phabricator.services.mozilla.com/D92645
2020-11-05 14:24:37 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Paul Adenot d1ddf42f65 Bug 1566389 - Send encoder delay and padding info to the mp3 decoder. r=jya
Depends on D91771

Differential Revision: https://phabricator.services.mozilla.com/D91772
2020-10-05 15:43:30 +00:00
Paul Adenot 025cb49a2b Bug 1566389 - Tag compressed mp3 frames as EOS when it's the case. r=jya
Depends on D91770

Differential Revision: https://phabricator.services.mozilla.com/D91771
2020-10-05 15:43:16 +00:00
Paul Adenot 4460bb2aaf Bug 1566389 - Store the parsed encoder delay and padding when demuxing an mp3 file. r=jya,bryce
Depends on D91769

Differential Revision: https://phabricator.services.mozilla.com/D91770
2020-10-05 15:43:03 +00:00
Paul Adenot a8aac7aef6 Bug 1566389 - Parse lame encoder delay and padding when demuxing MP3s. r=bryce,jya
Depends on D91776

Differential Revision: https://phabricator.services.mozilla.com/D91769
2020-10-05 15:42:57 +00:00
Noemi Erli d5e42c4c4e Backed out 7 changesets (bug 1566389) for causing bustages in FFmpegAudioDecoder.cpp
Backed out changeset 748e0d854d86 (bug 1566389)
Backed out changeset dd68ca2ed329 (bug 1566389)
Backed out changeset 820744dbc7d1 (bug 1566389)
Backed out changeset 89378e240d00 (bug 1566389)
Backed out changeset 6d36dae2ca8f (bug 1566389)
Backed out changeset ec4e0024ab8d (bug 1566389)
Backed out changeset 0fe64b836e24 (bug 1566389)
2020-10-05 18:23:37 +03:00
Paul Adenot 54b72ff408 Bug 1566389 - Send encoder delay and padding info to the mp3 decoder. r=jya
Depends on D91771

Differential Revision: https://phabricator.services.mozilla.com/D91772
2020-10-05 13:11:54 +00:00
Paul Adenot 21f50884ec Bug 1566389 - Tag compressed mp3 frames as EOS when it's the case. r=jya
Depends on D91770

Differential Revision: https://phabricator.services.mozilla.com/D91771
2020-10-05 13:11:36 +00:00
Paul Adenot a6ed3c2f7e Bug 1566389 - Store the parsed encoder delay and padding when demuxing an mp3 file. r=jya,bryce
Depends on D91769

Differential Revision: https://phabricator.services.mozilla.com/D91770
2020-10-05 13:11:16 +00:00
Paul Adenot 4a2bcc5c2a Bug 1566389 - Parse lame encoder delay and padding when demuxing MP3s. r=bryce,jya
Depends on D91776

Differential Revision: https://phabricator.services.mozilla.com/D91769
2020-10-05 13:10:51 +00:00
Butkovits Atila 4f41db1dfa Backed out 7 changesets (bug 1566389) for bustage at FFmpegAudioDecoder.cpp. CLOSED TREE
Backed out changeset 116644341a76 (bug 1566389)
Backed out changeset a3bedd49288d (bug 1566389)
Backed out changeset 8db398c91c5a (bug 1566389)
Backed out changeset 498a7c9cbc5f (bug 1566389)
Backed out changeset 19a04bdb5344 (bug 1566389)
Backed out changeset 8390ea4677a1 (bug 1566389)
Backed out changeset 085b748cfbaf (bug 1566389)
2020-10-01 22:43:04 +03:00
Paul Adenot 6814c5cd18 Bug 1566389 - Send encoder delay and padding info to the mp3 decoder. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D91772
2020-10-01 13:58:08 +00:00
Paul Adenot 92ff33f4b2 Bug 1566389 - Tag compressed mp3 frames as EOS when it's the case. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D91771
2020-10-01 13:58:06 +00:00
Paul Adenot 5f704f19d4 Bug 1566389 - Store the parsed encoder delay and padding when demuxing an mp3 file. r=jya,bryce
Differential Revision: https://phabricator.services.mozilla.com/D91770
2020-10-01 13:58:03 +00:00
Paul Adenot 7d47c493a4 Bug 1566389 - Parse lame encoder delay and padding when demuxing MP3s. r=bryce,jya
Differential Revision: https://phabricator.services.mozilla.com/D91769
2020-10-01 13:57:57 +00:00
Simon Giesecke cd8b8939b9 Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Chris Fronk d5b004443b Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-17 12:42:12 +00:00
shindli b02b3a6e1a Backed out changeset a08637fb30c8 (bug 1143478) for causing bustages in /builds/worker/checkouts/gecko/ipc/mscom/Registration.cpp CLOSED TREE
--HG--
rename : mfbt/CompactPair.h => mfbt/Pair.h
2020-03-11 14:30:54 +02:00
Chris Fronk a27e438c2d Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-11 12:18:13 +00:00
Simon Giesecke 88ead5d627 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/media. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D65178

--HG--
extra : moz-landing-system : lando
2020-03-04 15:39:20 +00:00
alwu 0b3d5845c0 Bug 1566066 - part1 : use Maybe to distinguish size 0 and uninitialized value. r=jya
We found there is a mp3 where the size is empty in its ID3 header, which makes mp3 parser think of that we haven't parsed the header yet, and then skip unnecessary bytes again and again.

We should use `Maybe` to know whether we finish parsing the size or not.

Differential Revision: https://phabricator.services.mozilla.com/D39252

--HG--
extra : moz-landing-system : lando
2019-07-25 16:49:57 +00:00
alwu 441473d744 Bug 1563949 - part4 : prevent direct usage of 'AppendElement()' to append sample. r=jya
We should always append sample by using `AppendSample()` to assert whether a sample is valid, so making `mSamples` private can prevent a direct usage of the nsTarry's `AppendElement()`.
Also provide a method to return non-const mSamples which is only used for the move semantics.

Differential Revision: https://phabricator.services.mozilla.com/D38427

--HG--
extra : moz-landing-system : lando
2019-07-19 21:11:21 +00:00
alwu 44cfc7989a Bug 1563949 - part3 : handle invalid sample in demuxer. r=jya
Return demux error when we get a invalid sample. For mp4 demuxer, we use `MOZ_DIAGNOSTIC_ASSERT` instead because we are pretty sure that it won't happen.

Differential Revision: https://phabricator.services.mozilla.com/D38553

--HG--
extra : moz-landing-system : lando
2019-07-19 20:48:15 +00:00
alwu 424b48c982 Bug 1563949 - part2 : add 'AppendSample' to assert that a sample should always be valid r=jya
We don't want to have a sample with invalid time, duration, end time or end timecode, so add a diagnostic assertion to check. And will handle invalid sample for demuxers in next patch.

Differential Revision: https://phabricator.services.mozilla.com/D38426

--HG--
extra : moz-landing-system : lando
2019-07-19 20:16:26 +00:00
Christian Holler 8cfda79e0d Bug 1465407 - Add media fuzzing targets. r=jya
Depends on D35776

Differential Revision: https://phabricator.services.mozilla.com/D35777

--HG--
extra : moz-landing-system : lando
2019-07-16 14:50:17 +00:00
Chun-Min Chang 949167ee63 Bug 1500713: P4 - Return NullableTimeUnit from MP3TrackDemuxer::Duration(). r=jya
Differential Revision: https://phabricator.services.mozilla.com/D24302

--HG--
extra : moz-landing-system : lando
2019-03-29 23:38:29 +00:00
Chun-Min Chang 9a23c18c8f Bug 1500713: P3 - Prevent duration in GetBuffered from being overestimated. r=kinetik,jya
Depends on D19097

Differential Revision: https://phabricator.services.mozilla.com/D22048

--HG--
extra : moz-landing-system : lando
2019-03-29 23:38:28 +00:00
Chun-Min Chang 97d1b59173 Bug 1500713: P2 - Seek MP3 parser to the original position if it fails parsing. r=kinetik,jya
Depends on D19096

Differential Revision: https://phabricator.services.mozilla.com/D19097

--HG--
extra : moz-landing-system : lando
2019-03-29 23:38:28 +00:00
arthur.iakab b6deb00c93 Backed out 4 changesets (bug 1500713) on request of jcristau for causing Bug 1535603 a=Backout
Backed out changeset 5d0cad2c99a4 (bug 1500713)
Backed out changeset f96a12eedd89 (bug 1500713)
Backed out changeset 2633cea7d119 (bug 1500713)
Backed out changeset 49c4cfbf2bee (bug 1500713)
2019-03-15 15:50:20 +02:00
Chun-Min Chang f251af73b4 Bug 1500713: P3 - Prevent duration in GetBuffered from being overestimated. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D22048

--HG--
extra : moz-landing-system : lando
2019-03-14 17:18:45 +00:00
Chun-Min Chang 1f89757f9f Bug 1500713: P2 - Seek MP3 parser to the original position if it fails parsing. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D19097

--HG--
extra : moz-landing-system : lando
2019-03-14 17:18:35 +00:00
Dorel Luca 8a746eed7d Backed out 4 changesets (bug 1500713) for build bustage
Backed out changeset d25ff3b04eeb (bug 1500713)
Backed out changeset 98265537ef34 (bug 1500713)
Backed out changeset 670b24af24d4 (bug 1500713)
Backed out changeset 7e5fa7b1f7bc (bug 1500713)
2019-03-12 07:16:59 +02:00
Chun-Min Chang fe833872ac Bug 1500713: P3 - Prevent duration in GetBuffered from being overestimated. r=kinetik
Depends on D19097

Differential Revision: https://phabricator.services.mozilla.com/D22048

--HG--
extra : moz-landing-system : lando
2019-03-09 01:09:37 +00:00
Chun-Min Chang 10ff475ede Bug 1500713: P2 - Seek MP3 parser to the original position if it fails parsing. r=kinetik
Depends on D19096

Differential Revision: https://phabricator.services.mozilla.com/D19097

--HG--
extra : moz-landing-system : lando
2019-03-09 01:09:26 +00:00
Ryan Hunt 00e98538aa Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21106

--HG--
extra : rebase_source : ea3f51c2c11247114deccbc86e90fb02b8a97257
2019-02-25 16:05:29 -06:00
Sylvestre Ledru 804b8b8883 Bug 1204606 - Reformat of dom/media r=jya
# skip-blame

Differential Revision: https://phabricator.services.mozilla.com/D12251

--HG--
extra : moz-landing-system : lando
2018-11-19 13:25:37 +00:00
Jean-Yves Avenard d346b32eb9 Bug 1409664 - P11. Add GetTracksInfo method to all MediaDecoder instances. r=bryce
Summary:
Allows to build an array ot TrackInfo built from the mimetype provided. This will allow to create dummy decoder to check that if they are supported and how well the decoder will perform.

Depends on D1623

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1624
2018-07-03 11:45:20 -07:00
Nathan Froyd a31fa9e19c Bug 1453437 - return UniquePtr from MediaRawData::CreateWriter; r=gerald
Returning UniquePtr is nicer than returning raw pointers, and has the
nice side effect of forcing us to clean up the uses of nsAutoPtr that
were hanging about.
2018-04-12 15:28:21 -04:00
Bryce Van Dyk 18af97a234 Bug 1432195 - Accept Mp3 streams with only 2 frames if both are valid. r=JanH
MozReview-Commit-ID: Gl5mgNuzZTt

--HG--
extra : rebase_source : 5668bbde8265887f7b2e4ed40c18cf41334c38ed
2018-02-26 19:07:46 -05:00
Chun-Min Chang f23d95372a Bug 1419736 - Calculate the mp3 duration by bitrate if it's CBR; r=jya
MozReview-Commit-ID: GftmYg50FTV

--HG--
extra : rebase_source : b820c4ef80679e8d83843565c92804f0b9ce9f81
2017-12-19 15:14:57 +08:00
Gerald Squelart c5aeab4f69 Bug 1407810 - Use DDMOZ_LOG in media stack - r=jwwang
Mostly-mechanical replacement of MOZ_LOG with DDMOZ_LOG, usually just removing
the class name and `this` pointer (as they are already implicitly recorded).
Some files needed a bit more work when logging was done from helper classes or
static functions.

MozReview-Commit-ID: IeJJmzYqWMQ

--HG--
extra : rebase_source : 94200838dcdaf6c3bda9de30042ce2d307237eef
2017-10-13 16:31:59 +11:00
Gerald Squelart 1b357db99b Bug 1407810 - Use DDLogger in media stack - r=jwwang
Mostly-mechanical additions:
- Log constructions&destructions, usually by just inheriting from
  DecoderDoctorLifeLogger, otherwise with explicit log commands (for internal
  classes for which DecoderDoctorTraits can't be specialized),
- Log links between most objects, e.g.: Media element -> decoder -> state
  machine -> reader -> demuxer -> resource, etc.

And logging some important properties and events (JS events, duration change,
frames being decoded, etc.)

More will be added later on, from just converting MOZ_LOGs, and as needed.

MozReview-Commit-ID: KgNhHSz35t0

--HG--
extra : rebase_source : dd7206e350e32671adc6f3b9e54ebf777251de2c
2017-10-10 17:55:27 +11:00