|
|
Created:
4 years, 2 months ago by servolk Modified:
4 years, 2 months ago Reviewers:
DaleCurtis CC:
chromium-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionHandle duplicate media track ids in FFmpegDemuxer
Previously we would just crash due to CHECK when we detected media
streams with duplicate bytestream ids. This CL adds explicit checks
for duplicate stream ids in FFmpegDemuxer and skips those streams.
BUG=657437
Committed: https://crrev.com/41ecabf2dc6286a0cc529cfe50eabe44c3a56c54
Cr-Commit-Position: refs/heads/master@{#426840}
Patch Set 1 #Patch Set 2 : Added a unit test #Patch Set 3 : Stream ids must be unique only per-stream-type #
Messages
Total messages: 29 (18 generated)
The CQ bit was checked by servolk@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Handle duplicated media track ids in FFmpegDemuxer Previously we would just crash due to CHECK when we detected media streams with duplicate bytestream ids. This CL adds explicit checks for duplicate stream ids in FFmpegDemuxer and skips those streams. BUG=657437 ========== to ========== Handle duplicated media track ids in FFmpegDemuxer Previously we would just crash due to CHECK when we detected media streams with duplicate bytestream ids. This CL adds explicit checks for duplicate stream ids in FFmpegDemuxer and skips those streams. BUG=657437 ==========
servolk@chromium.org changed reviewers: + dalecurtis@chromium.org
Description was changed from ========== Handle duplicated media track ids in FFmpegDemuxer Previously we would just crash due to CHECK when we detected media streams with duplicate bytestream ids. This CL adds explicit checks for duplicate stream ids in FFmpegDemuxer and skips those streams. BUG=657437 ========== to ========== Handle duplicate media track ids in FFmpegDemuxer Previously we would just crash due to CHECK when we detected media streams with duplicate bytestream ids. This CL adds explicit checks for duplicate stream ids in FFmpegDemuxer and skips those streams. BUG=657437 ==========
lgtm, a test would be nice if possible.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...)
On 2016/10/20 22:24:58, DaleCurtis wrote: > lgtm, a test would be nice if possible. I'm not sure how to generate an .mp4 file with duplicate stream ids on purpose, but I guess I can take the file generated by fuzzer, it is 43065 bytes.
The CQ bit was checked by servolk@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by servolk@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/10/20 23:08:24, DaleCurtis wrote: > lgtm Oops, sorry, I've looked at trybot failures and realized that previous patchsets were problematic, because stream ids must be only unique per-stream-type, i.e. it's fine to have audio stream with id X and video stream with id X. So I've reworked a little and patchset #3 should be good.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Is it okay to overwrite an invalid entry? Or are there no entries that are not valid besides the defaults?
On 2016/10/21 17:13:31, DaleCurtis wrote: > Is it okay to overwrite an invalid entry? Or are there no entries that are not > valid besides the defaults? FFmpegDemuxerStream::Create fails if the config is invalid, therefore all tracks added to the MediaTracks collection will have valid configs (there's actually also a DCHECK that enforces valid configs in MediaTracks::AddAudio/VideoTrack). Thus when getAudio/VideoTrack returns an invalid config, that means that track with that id hasn't been added to the MediaTracks collection yet.
lgtm
The CQ bit was checked by servolk@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Handle duplicate media track ids in FFmpegDemuxer Previously we would just crash due to CHECK when we detected media streams with duplicate bytestream ids. This CL adds explicit checks for duplicate stream ids in FFmpegDemuxer and skips those streams. BUG=657437 ========== to ========== Handle duplicate media track ids in FFmpegDemuxer Previously we would just crash due to CHECK when we detected media streams with duplicate bytestream ids. This CL adds explicit checks for duplicate stream ids in FFmpegDemuxer and skips those streams. BUG=657437 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Handle duplicate media track ids in FFmpegDemuxer Previously we would just crash due to CHECK when we detected media streams with duplicate bytestream ids. This CL adds explicit checks for duplicate stream ids in FFmpegDemuxer and skips those streams. BUG=657437 ========== to ========== Handle duplicate media track ids in FFmpegDemuxer Previously we would just crash due to CHECK when we detected media streams with duplicate bytestream ids. This CL adds explicit checks for duplicate stream ids in FFmpegDemuxer and skips those streams. BUG=657437 Committed: https://crrev.com/41ecabf2dc6286a0cc529cfe50eabe44c3a56c54 Cr-Commit-Position: refs/heads/master@{#426840} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/41ecabf2dc6286a0cc529cfe50eabe44c3a56c54 Cr-Commit-Position: refs/heads/master@{#426840} |