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

Side by Side Diff: media/webm/webm_stream_parser.cc

Issue 10825108: Remove a bunch of dead fields found by Scythe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/webm/webm_stream_parser.h" 5 #include "media/webm/webm_stream_parser.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "media/ffmpeg/ffmpeg_common.h" 9 #include "media/ffmpeg/ffmpeg_common.h"
10 #include "media/filters/ffmpeg_glue.h" 10 #include "media/filters/ffmpeg_glue.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 WebMInfoParser info_parser; 320 WebMInfoParser info_parser;
321 result = info_parser.Parse(cur, cur_size); 321 result = info_parser.Parse(cur, cur_size);
322 322
323 if (result <= 0) 323 if (result <= 0)
324 return result; 324 return result;
325 325
326 cur += result; 326 cur += result;
327 cur_size -= result; 327 cur_size -= result;
328 bytes_parsed += result; 328 bytes_parsed += result;
329 329
330 WebMTracksParser tracks_parser(info_parser.timecode_scale()); 330 WebMTracksParser tracks_parser;
331 result = tracks_parser.Parse(cur, cur_size); 331 result = tracks_parser.Parse(cur, cur_size);
332 332
333 if (result <= 0) 333 if (result <= 0)
334 return result; 334 return result;
335 335
336 bytes_parsed += result; 336 bytes_parsed += result;
337 337
338 base::TimeDelta duration = kInfiniteDuration(); 338 base::TimeDelta duration = kInfiniteDuration();
339 339
340 if (info_parser.duration() > 0) { 340 if (info_parser.duration() > 0) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 if (!video_buffers.empty() && !video_cb_.Run(video_buffers)) 432 if (!video_buffers.empty() && !video_cb_.Run(video_buffers))
433 return -1; 433 return -1;
434 434
435 if (cluster_ended) 435 if (cluster_ended)
436 end_of_segment_cb_.Run(); 436 end_of_segment_cb_.Run();
437 437
438 return bytes_parsed; 438 return bytes_parsed;
439 } 439 }
440 440
441 } // namespace media 441 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698