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

Issue 12209111: Set AVFMT_FLAG_GENPTS when demuxing AVI content. (Closed)

Created:
7 years, 10 months ago by scherkus (not reviewing)
Modified:
7 years, 10 months ago
Reviewers:
DaleCurtis, rbultje1
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Set AVFMT_FLAG_GENPTS when demuxing AVI content. Storing MPEG-4 B-frames in AVI has always been a bit of a hack and by default av_read_frame() will return non-timestamped video packets for such content. AVFMT_FLAG_GENPTS takes advantage of AVI's constant framerate to generate presentation timestamps at the expense of parsing delay. BUG=169570 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182310

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M content/browser/media/media_browsertest.cc View 1 chunk +1 line, -4 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 chunk +5 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
scherkus (not reviewing)
I'm not going to commit it just yet -- I want to dig in to ...
7 years, 10 months ago (2013-02-12 02:49:48 UTC) #1
rbultje1
lgtm - feel free to commit anytime once you're comfortable with what it does. If ...
7 years, 10 months ago (2013-02-12 17:16:05 UTC) #2
scherkus (not reviewing)
dalecurtis: care to take a look as well?
7 years, 10 months ago (2013-02-12 17:50:41 UTC) #3
DaleCurtis
lgtm % running the playback test under asan. https://codereview.chromium.org/12209111/diff/1/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): https://codereview.chromium.org/12209111/diff/1/media/filters/ffmpeg_demuxer.cc#newcode483 media/filters/ffmpeg_demuxer.cc:483: if ...
7 years, 10 months ago (2013-02-12 19:23:30 UTC) #4
scherkus (not reviewing)
https://codereview.chromium.org/12209111/diff/1/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): https://codereview.chromium.org/12209111/diff/1/media/filters/ffmpeg_demuxer.cc#newcode483 media/filters/ffmpeg_demuxer.cc:483: if (strcmp(format_context->iformat->name, "avi") == 0) On 2013/02/12 19:23:30, DaleCurtis ...
7 years, 10 months ago (2013-02-13 17:53:14 UTC) #5
DaleCurtis
7 years, 10 months ago (2013-02-13 19:31:57 UTC) #6
Oy, it's been so long since I've touched strcmp, you're right, I was thinking of
strncmp.

Powered by Google App Engine
This is Rietveld 408576698