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

Issue 113611: Handle end of stream for media... (Closed)

Created:
11 years, 7 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, fbarchard, awong
Visibility:
Public.

Description

Handle end of stream for media When FFmpegDemuxer failed to decode a raw packet, the signal of end of stream should bubble up to the renderers. It is done in this CL by creating fake buffers. This change also fixes a bug with video of only 1 frame. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=17656

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Total comments: 9

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 32

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 8

Patch Set 12 : '' #

Total comments: 12

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 2

Patch Set 15 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -58 lines) Patch
M media/base/buffers.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +11 lines, -12 lines 0 comments Download
M media/base/data_buffer_unittest.cc View 10 11 2 chunks +3 lines, -5 lines 0 comments Download
M media/base/mock_media_filters.h View 10 11 1 chunk +4 lines, -3 lines 0 comments Download
M media/base/pipeline.h View 10 11 1 chunk +1 line, -0 lines 0 comments Download
M media/base/video_frame_impl.h View 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M media/base/video_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +11 lines, -0 lines 0 comments Download
M media/base/video_frame_impl_unittest.cc View 10 11 2 chunks +4 lines, -3 lines 0 comments Download
M media/filters/audio_renderer_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +16 lines, -8 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +17 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 10 11 12 13 14 1 chunk +4 lines, -3 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -7 lines 0 comments Download
M media/filters/video_renderer_base.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M media/filters/video_thread.cc View 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +18 lines, -8 lines 2 comments Download

Messages

Total messages: 15 (0 generated)
Alpha Left Google
Handle EOS and bubble the signal up to renderers. So the flow of the EOS ...
11 years, 7 months ago (2009-05-20 02:36:08 UTC) #1
scherkus (not reviewing)
general thought: what if EOF was handled by having buffers/frames with NULL data and zero ...
11 years, 7 months ago (2009-05-22 20:35:10 UTC) #2
Alpha Left Google
On 2009/05/22 20:35:10, scherkus wrote: > general thought: > > what if EOF was handled ...
11 years, 7 months ago (2009-05-22 21:01:35 UTC) #3
Alpha Left Google
There was also a in avcodec_decode_video that we should pass in empty data and 0 ...
11 years, 7 months ago (2009-05-23 00:49:38 UTC) #4
scherkus (not reviewing)
http://codereview.chromium.org/113611/diff/1078/105 File media/base/video_frame_impl.h (right): http://codereview.chromium.org/113611/diff/1078/105#newcode24 Line 24: static void CreateEmptyFrame(scoped_refptr<VideoFrame>* frame_out); could you add a ...
11 years, 7 months ago (2009-05-27 22:49:07 UTC) #5
scherkus (not reviewing)
also... UNIT TESTS :) ffmpeg_demuxer_unittest.cc already sets up an EOF scenario.. you can add in ...
11 years, 7 months ago (2009-05-27 22:54:59 UTC) #6
Alpha Left Google
http://codereview.chromium.org/113611/diff/1078/105 File media/base/video_frame_impl.h (right): http://codereview.chromium.org/113611/diff/1078/105#newcode24 Line 24: static void CreateEmptyFrame(scoped_refptr<VideoFrame>* frame_out); On 2009/05/27 22:49:08, scherkus ...
11 years, 6 months ago (2009-06-02 19:13:02 UTC) #7
scherkus (not reviewing)
few comments.. rest to come later http://codereview.chromium.org/113611/diff/1125/181 File media/base/data_buffer_unittest.cc (right): http://codereview.chromium.org/113611/diff/1125/181#newcode31 Line 31: EXPECT_TRUE(buffer->IsEndOfStream()); we ...
11 years, 6 months ago (2009-06-02 19:20:52 UTC) #8
Alpha Left Google
http://codereview.chromium.org/113611/diff/1125/181 File media/base/data_buffer_unittest.cc (right): http://codereview.chromium.org/113611/diff/1125/181#newcode31 Line 31: EXPECT_TRUE(buffer->IsEndOfStream()); On 2009/06/02 19:20:52, scherkus wrote: > we ...
11 years, 6 months ago (2009-06-02 23:03:17 UTC) #9
scherkus (not reviewing)
few nits and questions http://codereview.chromium.org/113611/diff/1078/97 File media/filters/ffmpeg_video_decoder.cc (right): http://codereview.chromium.org/113611/diff/1078/97#newcode103 Line 103: if (buffer->IsEndOfStream()) { On ...
11 years, 6 months ago (2009-06-03 22:37:39 UTC) #10
Alpha Left Google
http://codereview.chromium.org/113611/diff/1078/97 File media/filters/ffmpeg_video_decoder.cc (right): http://codereview.chromium.org/113611/diff/1078/97#newcode103 Line 103: if (buffer->IsEndOfStream()) { On 2009/06/03 22:37:39, scherkus wrote: ...
11 years, 6 months ago (2009-06-03 23:24:37 UTC) #11
scherkus (not reviewing)
http://codereview.chromium.org/113611/diff/1135/1137 File media/filters/video_thread.cc (right): http://codereview.chromium.org/113611/diff/1135/1137#newcode251 Line 251: frame_available_.Signal(); On 2009/06/03 23:24:38, Alpha wrote: > On ...
11 years, 6 months ago (2009-06-04 00:27:21 UTC) #12
Alpha Left Google
http://codereview.chromium.org/113611/diff/1135/1137 File media/filters/video_thread.cc (right): http://codereview.chromium.org/113611/diff/1135/1137#newcode251 Line 251: frame_available_.Signal(); On 2009/06/04 00:27:21, scherkus wrote: > On ...
11 years, 6 months ago (2009-06-04 17:42:12 UTC) #13
scherkus (not reviewing)
LGTM with one nit (remove an empty line) http://codereview.chromium.org/113611/diff/1178/257 File media/filters/video_thread.cc (right): http://codereview.chromium.org/113611/diff/1178/257#newcode166 Line 166: ...
11 years, 6 months ago (2009-06-04 20:11:08 UTC) #14
Alpha Left Google
11 years, 6 months ago (2009-06-04 20:13:34 UTC) #15
http://codereview.chromium.org/113611/diff/1178/257
File media/filters/video_thread.cc (right):

http://codereview.chromium.org/113611/diff/1178/257#newcode166
Line 166: 
On 2009/06/04 20:11:08, scherkus wrote:
> remove empty line

Done.

Powered by Google App Engine
This is Rietveld 408576698