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

Issue 99160: Clean up FFmpeg media formats and switch to using av_get_bits_per_sample_format(). (Closed)

Created:
11 years, 8 months ago by scherkus (not reviewing)
Modified:
9 years, 7 months ago
Reviewers:
awong, ralphl
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Clean up FFmpeg media formats and switch to using av_get_bits_per_sample_format(). Before we were relying on codecs setting bits_per_raw_sample, which turns out isn't a valid assumption at all (i.e., vorbis). However, codecs always set the sample format so we can use the FFmpeg utility function av_get_bits_per_sample_format() to convert the SampleFormat enum to an integer number of bits.

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+3026 lines, -3062 lines) Patch
M chrome/chrome.sln View 1 chunk +3013 lines, -3014 lines 0 comments Download
M media/base/media_posix.cc View 3 chunks +9 lines, -1 line 1 comment Download
M media/filters/ffmpeg_audio_decoder.cc View 2 chunks +3 lines, -10 lines 0 comments Download
M media/filters/ffmpeg_common.h View 1 chunk +0 lines, -3 lines 0 comments Download
M media/filters/ffmpeg_common.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 chunk +0 lines, -12 lines 2 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 2 chunks +0 lines, -19 lines 0 comments Download
M third_party/ffmpeg/avcodec-52.def View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
scherkus (not reviewing)
Ignore the chrome.sln change... got included by accident. ralphl: bulk of the review is on ...
11 years, 8 months ago (2009-04-28 23:21:37 UTC) #1
awong
LGTM++ one sanity check question. http://codereview.chromium.org/99160/diff/1/3 File media/base/media_posix.cc (right): http://codereview.chromium.org/99160/diff/1/3#newcode174 Line 174: dlsym(libs[FILE_LIBAVCODEC], "av_get_bits_per_sample_format")); :-/ ...
11 years, 8 months ago (2009-04-28 23:25:55 UTC) #2
scherkus (not reviewing)
http://codereview.chromium.org/99160/diff/1/7 File media/filters/ffmpeg_demuxer.cc (left): http://codereview.chromium.org/99160/diff/1/7#oldcode64 Line 64: stream->codec->channels); On 2009/04/28 23:25:56, awong wrote: > do ...
11 years, 8 months ago (2009-04-28 23:31:10 UTC) #3
ralphl
11 years, 8 months ago (2009-04-28 23:38:29 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698