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

Issue 174027: Fix Issue 160529 in a nice way (Closed)

Created:
11 years, 4 months ago by fbarchard
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, ffmpeg, scherkus (not reviewing), awong
Visibility:
Public.

Description

Fix Issue 160529 in a nice way with unittest. Original CL171023 by Song YeWen. BUG=16020 TEST=test with all media types and ensure there are no memory leaks are functional differences from previous version. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24016

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Total comments: 11

Patch Set 6 : '' #

Total comments: 1

Patch Set 7 : '' #

Total comments: 8

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -54 lines) Patch
M AUTHORS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/base/mock_ffmpeg.h View 5 1 chunk +1 line, -0 lines 0 comments Download
M media/base/mock_ffmpeg.cc View 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -34 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +20 lines, -19 lines 0 comments Download
M third_party/ffmpeg/avcodec-52.sigs View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
fbarchard
A simplier fix for demuxer packet duplication, which leads to a simplier unittest. Also lint ...
11 years, 4 months ago (2009-08-18 22:55:02 UTC) #1
scherkus (not reviewing)
Don't forget to credit Song YeWen and the link to the original CL in your ...
11 years, 4 months ago (2009-08-18 23:42:46 UTC) #2
fbarchard
DupPackets are in the wrong spots. Without DupPacket mock, the unittest fails if you delete ...
11 years, 4 months ago (2009-08-19 19:08:31 UTC) #3
scherkus (not reviewing)
LGTM with one nit you can submit after fixing http://codereview.chromium.org/174027/diff/23/1017 File media/base/mock_ffmpeg.cc (right): http://codereview.chromium.org/174027/diff/23/1017#newcode169 Line ...
11 years, 4 months ago (2009-08-19 19:35:30 UTC) #4
fbarchard
fixed read, but seek fails http://codereview.chromium.org/174027/diff/23/1017 File media/base/mock_ffmpeg.cc (right): http://codereview.chromium.org/174027/diff/23/1017#newcode169 Line 169: int av_dup_packet(AVPacket* packet) ...
11 years, 4 months ago (2009-08-20 22:30:10 UTC) #5
fbarchard
seek demux inittest passing. http://codereview.chromium.org/174027/diff/29/1023 File media/filters/ffmpeg_demuxer_unittest.cc (left): http://codereview.chromium.org/174027/diff/29/1023#oldcode498 Line 498: EXPECT_CALL(*MockFFmpeg::get(), AVFreePacket(_)).WillOnce(FreePacket()); mixed this ...
11 years, 4 months ago (2009-08-20 22:36:00 UTC) #6
fbarchard
What exactly does av_dup_packet do? http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2005-June/002173.html the buffer of an AVPacket is either used just ...
11 years, 4 months ago (2009-08-20 22:39:41 UTC) #7
Alpha Left Google
http://codereview.chromium.org/174027/diff/1030/1031 File media/filters/ffmpeg_demuxer.cc (right): http://codereview.chromium.org/174027/diff/1030/1031#newcode283 Line 283: DCHECK(stream < static_cast<int>(streams_.size())); you can change this to ...
11 years, 4 months ago (2009-08-20 22:43:31 UTC) #8
fbarchard
fixed. note that lint has a bug on class member function pointers, thinking its a ...
11 years, 4 months ago (2009-08-20 23:03:30 UTC) #9
scherkus (not reviewing)
http://codereview.chromium.org/174027/diff/1030/1032 File media/filters/ffmpeg_demuxer_unittest.cc (right): http://codereview.chromium.org/174027/diff/1030/1032#newcode599 Line 599: void (FFmpegDemuxerTest::*)(Buffer*), // NOLINT On 2009/08/20 23:03:30, fbarchard ...
11 years, 4 months ago (2009-08-20 23:14:45 UTC) #10
fbarchard
fixed to lint issues in mock, and reintroduced one in demux unittest. http://codereview.chromium.org/174027/diff/1030/1032 File media/filters/ffmpeg_demuxer_unittest.cc ...
11 years, 4 months ago (2009-08-20 23:39:30 UTC) #11
fbarchard
ping
11 years, 4 months ago (2009-08-21 18:48:46 UTC) #12
Alpha Left Google
LGTM
11 years, 4 months ago (2009-08-21 18:51:55 UTC) #13
scherkus (not reviewing)
11 years, 4 months ago (2009-08-21 18:53:51 UTC) #14
LGTM

Powered by Google App Engine
This is Rietveld 408576698