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

Unified Diff: media/ffmpeg/ffmpeg_common.cc

Issue 10832087: Remove VideoDecoderConfig.frame_rate_xxx() & VideoFrame:Get/SetDuration() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address more CR comments. Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/video_util_unittest.cc ('k') | media/filters/ffmpeg_demuxer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/ffmpeg/ffmpeg_common.cc
diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
index 8c29c9bb938b6f0ac4751ebce093d3c60b514c21..1a4e41808006e792eb3ecd3a636f5eaaea0ad7a0 100644
--- a/media/ffmpeg/ffmpeg_common.cc
+++ b/media/ffmpeg/ffmpeg_common.cc
@@ -254,8 +254,6 @@ void AVStreamToVideoDecoderConfig(
profile,
PixelFormatToVideoFormat(stream->codec->pix_fmt),
coded_size, visible_rect,
- stream->r_frame_rate.num,
- stream->r_frame_rate.den,
aspect_ratio.num,
aspect_ratio.den,
stream->codec->extradata,
@@ -356,14 +354,6 @@ PixelFormat VideoFormatToPixelFormat(VideoFrame::Format video_format) {
return PIX_FMT_NONE;
}
-base::TimeDelta GetFrameDuration(const VideoDecoderConfig& config) {
- AVRational time_base = {
- config.frame_rate_denominator(),
- config.frame_rate_numerator()
- };
- return ConvertFromTimeBase(time_base, 1);
-}
-
void DestroyAVFormatContext(AVFormatContext* format_context) {
DCHECK(format_context);
« no previous file with comments | « media/base/video_util_unittest.cc ('k') | media/filters/ffmpeg_demuxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698