|
No EOS frame in {Audio|Video}Decoder::OutputCB.
This is a follow-up CL of r276344.
Currently, when audio and video decoders receive an EOS buffer, they do the following in order:
1, Flush the codec, return all internally buffered frames through the OutputCB.
2, Return a EOS frame through the OutputCB.
3, Return the DecodeCB.
Since the DecoderStream knows when an input buffer is an EOS, when the DecodeCB is returned, DecoderStream knows that decoding has finished. Therefore, step (2) is redundant.
This CL drops step (2) which simplifies a lot of code.
BUG= 385872
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278232
Total comments: 12
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+285 lines, -236 lines) |
Patch |
 |
M |
media/base/audio_decoder.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/base/video_decoder.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/audio_renderer_impl_unittest.cc
|
View
|
1
|
2 chunks |
+20 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/filters/decoder_stream.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/decoder_stream.cc
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+44 lines, -35 lines |
0 comments
|
Download
|
 |
M |
media/filters/decoder_stream_traits.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/decoder_stream_traits.cc
|
View
|
|
3 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/decrypting_audio_decoder.cc
|
View
|
1
|
1 chunk |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
media/filters/decrypting_audio_decoder_unittest.cc
|
View
|
1
|
2 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
 |
M |
media/filters/decrypting_video_decoder.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/decrypting_video_decoder.cc
|
View
|
1
2
3
|
3 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
media/filters/decrypting_video_decoder_unittest.cc
|
View
|
1
|
2 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
 |
M |
media/filters/fake_demuxer_stream.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+11 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/filters/fake_demuxer_stream.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+20 lines, -9 lines |
0 comments
|
Download
|
 |
M |
media/filters/fake_demuxer_stream_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+47 lines, -19 lines |
0 comments
|
Download
|
 |
M |
media/filters/fake_video_decoder.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/fake_video_decoder_unittest.cc
|
View
|
|
7 chunks |
+9 lines, -17 lines |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_audio_decoder.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+22 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_audio_decoder.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+16 lines, -38 lines |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_audio_decoder_unittest.cc
|
View
|
|
3 chunks |
+3 lines, -9 lines |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_video_decoder.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_video_decoder.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_video_decoder_unittest.cc
|
View
|
|
10 chunks |
+13 lines, -32 lines |
0 comments
|
Download
|
 |
M |
media/filters/gpu_video_decoder.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/gpu_video_decoder.cc
|
View
|
1
2
3
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
media/filters/opus_audio_decoder.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/opus_audio_decoder_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -8 lines |
0 comments
|
Download
|
 |
M |
media/filters/video_frame_stream_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+19 lines, -6 lines |
0 comments
|
Download
|
 |
M |
media/filters/video_renderer_impl_unittest.cc
|
View
|
|
4 chunks |
+25 lines, -10 lines |
0 comments
|
Download
|
 |
M |
media/filters/vpx_video_decoder.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 20 (0 generated)
|