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

Unified Diff: media/filters/ffmpeg_demuxer.h

Issue 465044: Refactor FFmpegVideoDecoder to try and generalize code common to all video decoders. (Closed)
Patch Set: Fix SCOPED_TRACE since VS faults on %zd. Created 11 years 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/filters/ffmpeg_audio_decoder.cc ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_demuxer.h
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h
index f6af38c716edee99345cf65255bc178220d87bc1..f1b13a04500b176b59b476ef590c02aa87e7533a 100644
--- a/media/filters/ffmpeg_demuxer.h
+++ b/media/filters/ffmpeg_demuxer.h
@@ -39,6 +39,7 @@ struct AVCodecContext;
struct AVBitStreamFilterContext;
struct AVFormatContext;
struct AVPacket;
+struct AVRational;
struct AVStream;
namespace media {
@@ -93,7 +94,8 @@ class FFmpegDemuxerStream : public DemuxerStream, public AVStreamProvider {
void FulfillPendingRead();
// Converts an FFmpeg stream timestamp into a base::TimeDelta.
- base::TimeDelta ConvertTimestamp(int64 timestamp);
+ static base::TimeDelta ConvertStreamTimestamp(const AVRational& time_base,
+ int64 timestamp);
FFmpegDemuxer* demuxer_;
AVStream* stream_;
« no previous file with comments | « media/filters/ffmpeg_audio_decoder.cc ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698