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

Side by Side Diff: media/ffmpeg/ffmpeg_regression_tests.cc

Issue 2635573002: Fix int-overflow due to absent stream timestamp (Closed)
Patch Set: Addressed comments Created 3 years, 11 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
« no previous file with comments | « no previous file | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Regression tests for FFmpeg. Test files can be found in the internal media 5 // Regression tests for FFmpeg. Test files can be found in the internal media
6 // test data directory: 6 // test data directory:
7 // 7 //
8 // https://chrome-internal.googlesource.com/chrome/data/media 8 // https://chrome-internal.googlesource.com/chrome/data/media
9 // 9 //
10 // Simply add the custom_dep below to your gclient and sync: 10 // Simply add the custom_dep below to your gclient and sync:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 FFMPEG_TEST_CASE(Cr101458, "security/101458.webm", PIPELINE_OK, PIPELINE_OK); 94 FFMPEG_TEST_CASE(Cr101458, "security/101458.webm", PIPELINE_OK, PIPELINE_OK);
95 FFMPEG_TEST_CASE(Cr108416, "security/108416.webm", PIPELINE_OK, PIPELINE_OK); 95 FFMPEG_TEST_CASE(Cr108416, "security/108416.webm", PIPELINE_OK, PIPELINE_OK);
96 FFMPEG_TEST_CASE(Cr110849, 96 FFMPEG_TEST_CASE(Cr110849,
97 "security/110849.mkv", 97 "security/110849.mkv",
98 DEMUXER_ERROR_COULD_NOT_OPEN, 98 DEMUXER_ERROR_COULD_NOT_OPEN,
99 DEMUXER_ERROR_NO_SUPPORTED_STREAMS); 99 DEMUXER_ERROR_NO_SUPPORTED_STREAMS);
100 FFMPEG_TEST_CASE(Cr112384, 100 FFMPEG_TEST_CASE(Cr112384,
101 "security/112384.webm", 101 "security/112384.webm",
102 DEMUXER_ERROR_COULD_NOT_PARSE, 102 DEMUXER_ERROR_COULD_NOT_PARSE,
103 DEMUXER_ERROR_COULD_NOT_PARSE); 103 DEMUXER_ERROR_COULD_NOT_PARSE);
104 FFMPEG_TEST_CASE(Cr112976, "security/112976.ogg", PIPELINE_OK, PIPELINE_OK); 104 FFMPEG_TEST_CASE(Cr112976,
105 "security/112976.ogg",
106 PIPELINE_OK,
107 DEMUXER_ERROR_COULD_NOT_PARSE);
105 FFMPEG_TEST_CASE(Cr116927, 108 FFMPEG_TEST_CASE(Cr116927,
106 "security/116927.ogv", 109 "security/116927.ogv",
107 DEMUXER_ERROR_NO_SUPPORTED_STREAMS, 110 DEMUXER_ERROR_NO_SUPPORTED_STREAMS,
108 DEMUXER_ERROR_NO_SUPPORTED_STREAMS); 111 DEMUXER_ERROR_NO_SUPPORTED_STREAMS);
109 FFMPEG_TEST_CASE(Cr117912, 112 FFMPEG_TEST_CASE(Cr117912,
110 "security/117912.webm", 113 "security/117912.webm",
111 DEMUXER_ERROR_COULD_NOT_OPEN, 114 DEMUXER_ERROR_COULD_NOT_OPEN,
112 DEMUXER_ERROR_COULD_NOT_OPEN); 115 DEMUXER_ERROR_COULD_NOT_OPEN);
113 FFMPEG_TEST_CASE(Cr123481, "security/123481.ogv", PIPELINE_OK, PIPELINE_OK); 116 FFMPEG_TEST_CASE(Cr123481,
117 "security/123481.ogv",
118 PIPELINE_OK,
119 DEMUXER_ERROR_COULD_NOT_PARSE);
114 FFMPEG_TEST_CASE(Cr132779, 120 FFMPEG_TEST_CASE(Cr132779,
115 "security/132779.webm", 121 "security/132779.webm",
116 DEMUXER_ERROR_COULD_NOT_PARSE, 122 DEMUXER_ERROR_COULD_NOT_PARSE,
117 DEMUXER_ERROR_COULD_NOT_PARSE); 123 DEMUXER_ERROR_COULD_NOT_PARSE);
118 FFMPEG_TEST_CASE(Cr140165, "security/140165.ogg", PIPELINE_OK, PIPELINE_OK); 124 FFMPEG_TEST_CASE(Cr140165,
125 "security/140165.ogg",
126 PIPELINE_OK,
127 DEMUXER_ERROR_COULD_NOT_PARSE);
119 FFMPEG_TEST_CASE(Cr140647, 128 FFMPEG_TEST_CASE(Cr140647,
120 "security/140647.ogv", 129 "security/140647.ogv",
121 DEMUXER_ERROR_COULD_NOT_OPEN, 130 DEMUXER_ERROR_COULD_NOT_OPEN,
122 DEMUXER_ERROR_COULD_NOT_OPEN); 131 DEMUXER_ERROR_COULD_NOT_OPEN);
123 FFMPEG_TEST_CASE(Cr142738, "crbug142738.ogg", PIPELINE_OK, PIPELINE_OK); 132 FFMPEG_TEST_CASE(Cr142738,
133 "crbug142738.ogg",
134 PIPELINE_OK,
135 DEMUXER_ERROR_COULD_NOT_PARSE);
124 FFMPEG_TEST_CASE(Cr152691, 136 FFMPEG_TEST_CASE(Cr152691,
125 "security/152691.mp3", 137 "security/152691.mp3",
126 PIPELINE_OK, 138 PIPELINE_OK,
127 PIPELINE_ERROR_DECODE); 139 PIPELINE_ERROR_DECODE);
128 FFMPEG_TEST_CASE(Cr161639, "security/161639.m4a", PIPELINE_OK, PIPELINE_OK); 140 FFMPEG_TEST_CASE(Cr161639, "security/161639.m4a", PIPELINE_OK, PIPELINE_OK);
129 FFMPEG_TEST_CASE(Cr222754, 141 FFMPEG_TEST_CASE(Cr222754,
130 "security/222754.mp4", 142 "security/222754.mp4",
131 DEMUXER_ERROR_NO_SUPPORTED_STREAMS, 143 DEMUXER_ERROR_NO_SUPPORTED_STREAMS,
132 DEMUXER_ERROR_NO_SUPPORTED_STREAMS); 144 DEMUXER_ERROR_NO_SUPPORTED_STREAMS);
133 FFMPEG_TEST_CASE(Cr234630a, "security/234630a.mov", PIPELINE_OK, PIPELINE_OK); 145 FFMPEG_TEST_CASE(Cr234630a, "security/234630a.mov", PIPELINE_OK, PIPELINE_OK);
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 } 431 }
420 432
421 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { 433 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) {
422 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { 434 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) {
423 Play(); 435 Play();
424 WaitUntilEndedOrError(); 436 WaitUntilEndedOrError();
425 } 437 }
426 } 438 }
427 439
428 } // namespace media 440 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698