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

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

Issue 7658017: Revert 96974 - Remove mock_ffmpeg and update media unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « media/base/test_data_util.cc ('k') | media/filters/bitstream_converter.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ffmpeg/ffmpeg_common.h" 5 #include "media/ffmpeg/ffmpeg_common.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace media { 9 namespace media {
10 10
(...skipping 25 matching lines...) Expand all
36 case CODEC_ID_VP8: 36 case CODEC_ID_VP8:
37 return kCodecVP8; 37 return kCodecVP8;
38 default: 38 default:
39 NOTREACHED(); 39 NOTREACHED();
40 } 40 }
41 return kUnknown; 41 return kUnknown;
42 } 42 }
43 43
44 CodecID VideoCodecToCodecID(VideoCodec video_codec) { 44 CodecID VideoCodecToCodecID(VideoCodec video_codec) {
45 switch (video_codec) { 45 switch (video_codec) {
46 case kUnknown:
47 return CODEC_ID_NONE;
48 case kCodecVC1: 46 case kCodecVC1:
49 return CODEC_ID_VC1; 47 return CODEC_ID_VC1;
50 case kCodecH264: 48 case kCodecH264:
51 return CODEC_ID_H264; 49 return CODEC_ID_H264;
52 case kCodecTheora: 50 case kCodecTheora:
53 return CODEC_ID_THEORA; 51 return CODEC_ID_THEORA;
54 case kCodecMPEG2: 52 case kCodecMPEG2:
55 return CODEC_ID_MPEG2VIDEO; 53 return CODEC_ID_MPEG2VIDEO;
56 case kCodecMPEG4: 54 case kCodecMPEG4:
57 return CODEC_ID_MPEG4; 55 return CODEC_ID_MPEG4;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 avcodec_close(stream->codec); 226 avcodec_close(stream->codec);
229 } 227 }
230 } 228 }
231 } 229 }
232 230
233 // Then finally cleanup the format context. 231 // Then finally cleanup the format context.
234 av_close_input_file(format_context); 232 av_close_input_file(format_context);
235 } 233 }
236 234
237 } // namespace media 235 } // namespace media
OLDNEW
« no previous file with comments | « media/base/test_data_util.cc ('k') | media/filters/bitstream_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698