| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.  Use of this | 
|  | 2 // source code is governed by a BSD-style license that can be found in the | 
|  | 3 // LICENSE file. | 
|  | 4 | 
|  | 5 #include "media/ffmpeg/ffmpeg_util.h" | 
|  | 6 | 
|  | 7 #include "media/filters/ffmpeg_common.h" | 
|  | 8 | 
|  | 9 namespace media { | 
|  | 10 | 
|  | 11 static const AVRational kMicrosBase = { 1, base::Time::kMicrosecondsPerSecond }; | 
|  | 12 | 
|  | 13 base::TimeDelta ConvertTimestamp(const AVRational& time_base, int64 timestamp) { | 
|  | 14   int64 microseconds = av_rescale_q(timestamp, time_base, kMicrosBase); | 
|  | 15   return base::TimeDelta::FromMicroseconds(microseconds); | 
|  | 16 } | 
|  | 17 | 
|  | 18 }  // namespace media | 
| OLD | NEW | 
|---|