Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Issue 2885643002: Have FFmpeg Decoders handle 0 byte buffers instead of FFmpeg (Closed)

Created:
3 years, 7 months ago by jrummell
Modified:
3 years, 7 months ago
Reviewers:
xhwang, wolenetz
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Have FFmpeg Decoders handle 0 byte buffers instead of FFmpeg Starting in M60 avcodec_decode_video2() fails if an empty buffer is passed in. So don't have FFmpegAudioDecoder or FFmpegVideoDecoder call FFmpeg routines if there is no data to process. BUG=718142, 663438 TEST=affected test still passes Review-Url: https://codereview.chromium.org/2885643002 Cr-Commit-Position: refs/heads/master@{#474080} Committed: https://chromium.googlesource.com/chromium/src/+/3287cb2391a584ab3b10c4a1099290fb419cd797

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments #

Patch Set 3 : FFmpegAudioDecoder #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M media/filters/ffmpeg_audio_decoder.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (6 generated)
jrummell
PTAL. Preemptive fix for FFmpeg merge.
3 years, 7 months ago (2017-05-15 23:16:29 UTC) #2
xhwang
Thanks for the fix. Shall we do the same for FFmpegAudioDecoder? https://codereview.chromium.org/2885643002/diff/1/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): ...
3 years, 7 months ago (2017-05-15 23:35:18 UTC) #3
jrummell
Updated. > Shall we do the same for FFmpegAudioDecoder? FFmpegAudioDecoder doesn't have the same problem. ...
3 years, 7 months ago (2017-05-16 21:54:03 UTC) #4
xhwang
On 2017/05/16 21:54:03, jrummell wrote: > Updated. > > > Shall we do the same ...
3 years, 7 months ago (2017-05-16 23:05:21 UTC) #5
jrummell
Updated to include FFmpegAudioDecoder. Don't know for sure whether avcodec_decode_audio4() complains or not, but having ...
3 years, 7 months ago (2017-05-17 18:57:35 UTC) #7
xhwang
Thanks! LGTM
3 years, 7 months ago (2017-05-17 20:57:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2885643002/40001
3 years, 7 months ago (2017-05-23 20:23:17 UTC) #11
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 22:11:50 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/3287cb2391a584ab3b10c4a10992...

Powered by Google App Engine
This is Rietveld 408576698