[Media] Fix crash when handling zero-value discard padding [chromium/src : main]

0 views
Skip to first unread message

Jordan Bayles (Gerrit)

unread,
Sep 19, 2025, 7:00:46 PM (16 hours ago) Sep 19
to chromium...@chromium.org, feature-me...@chromium.org

Jordan Bayles voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Icaa45044d84f0e804393ab311c4e6702eb2960c8
Gerrit-Change-Number: 6968169
Gerrit-PatchSet: 2
Gerrit-Owner: Jordan Bayles <jop...@chromium.org>
Gerrit-Reviewer: Jordan Bayles <jop...@chromium.org>
Gerrit-Comment-Date: Fri, 19 Sep 2025 23:00:36 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Frank Liberato (Gerrit)

unread,
Sep 19, 2025, 8:19:59 PM (14 hours ago) Sep 19
to Jordan Bayles, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
Attention needed from Jordan Bayles

Frank Liberato voted and added 2 comments

Votes added by Frank Liberato

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Frank Liberato . resolved

lgtm either way.

thanks
-fl

File media/filters/ffmpeg_demuxer.cc
Line 640, Patchset 2 (Latest): const auto start_padding = buffer->discard_padding()
Frank Liberato . unresolved

should this check `discard_padding &&`? no idea if that can happen - it's just a reflexive comment.

Open in Gerrit

Related details

Attention is currently required from:
  • Jordan Bayles
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Icaa45044d84f0e804393ab311c4e6702eb2960c8
Gerrit-Change-Number: 6968169
Gerrit-PatchSet: 2
Gerrit-Owner: Jordan Bayles <jop...@chromium.org>
Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
Gerrit-Reviewer: Jordan Bayles <jop...@chromium.org>
Gerrit-Attention: Jordan Bayles <jop...@chromium.org>
Gerrit-Comment-Date: Sat, 20 Sep 2025 00:19:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Jordan Bayles (Gerrit)

unread,
Sep 19, 2025, 9:02:00 PM (14 hours ago) Sep 19
to Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org

Jordan Bayles voted and added 1 comment

Votes added by Jordan Bayles

Commit-Queue+2

1 comment

File media/filters/ffmpeg_demuxer.cc
Line 640, Patchset 2 (Latest): const auto start_padding = buffer->discard_padding()
Frank Liberato . resolved

should this check `discard_padding &&`? no idea if that can happen - it's just a reflexive comment.

Jordan Bayles

no, it shouldn't. At this point `discard_padding` should be ignored in favor of `buffer->discard_padding()`. I also want to move the logic to determine what the discard padding is into its own method so it's a little more clear. This method is massive. But that refactor can come after the crash fix.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Icaa45044d84f0e804393ab311c4e6702eb2960c8
Gerrit-Change-Number: 6968169
Gerrit-PatchSet: 2
Gerrit-Owner: Jordan Bayles <jop...@chromium.org>
Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
Gerrit-Reviewer: Jordan Bayles <jop...@chromium.org>
Gerrit-Comment-Date: Sat, 20 Sep 2025 01:01:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Frank Liberato <libe...@chromium.org>
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages