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

Unified Diff: media/ffmpeg/ffmpeg_common.cc

Issue 2506533002: Use width,height for coded_{width,height} in AVStreamToVideoDecoderConfig (Closed)
Patch Set: Address comments. Created 4 years, 1 month 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_decoder_config.h ('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/ffmpeg/ffmpeg_common.cc
diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
index aaf3afcd5de754f1b2371deb3565ae466d3bd5bb..8b75f4fc13eafcbbdcc4ab80aea264508a9cf404 100644
--- a/media/ffmpeg/ffmpeg_common.cc
+++ b/media/ffmpeg/ffmpeg_common.cc
@@ -441,7 +441,10 @@ void AudioDecoderConfigToAVCodecContext(const AudioDecoderConfig& config,
bool AVStreamToVideoDecoderConfig(const AVStream* stream,
VideoDecoderConfig* config) {
- gfx::Size coded_size(stream->codec->coded_width, stream->codec->coded_height);
+ // Anticipating AVStream.codec.coded_{width,height} will be inaccessible in
+ // ffmpeg soon, just use the width and height, padded below, as hints of the
+ // coded size.
+ gfx::Size coded_size(stream->codec->width, stream->codec->height);
// TODO(vrk): This assumes decoded frame data starts at (0, 0), which is true
// for now, but may not always be true forever. Fix this in the future.
« no previous file with comments | « media/base/video_decoder_config.h ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698