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

Issue 1639273002: H264: Thread-safe InitializeFFmpeg. Flag to control if InitializeFFmpeg should be called. (Closed)

Created:
4 years, 11 months ago by hbos
Modified:
4 years, 10 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

H264: Thread-safe InitializeFFmpeg. Flag to control if InitializeFFmpeg should be called. New flag: rtc_initialize_ffmpeg, default value = !build_with_chromium. In WebRTC standalone we initialize FFmpeg by default, in Chromium we don't by default. Chromium is an external project that also use FFmpeg. If both projects do FFmpeg initialization code things will break. The flag makes it possible for other external projects than chromium to decide whether or not WebRTC should initialize FFmpeg. BUG=chromium:500605, chromium:468365, webrtc:5427 Committed: https://crrev.com/c5a39c25919191cec1b838a7e83ac028bb2e9d85 Cr-Commit-Position: refs/heads/master@{#11456}

Patch Set 1 #

Total comments: 11

Patch Set 2 : rtc_initialize_ffmpeg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -12 lines) Patch
M webrtc/build/common.gypi View 1 1 chunk +12 lines, -0 lines 0 comments Download
M webrtc/build/webrtc.gni View 1 1 chunk +8 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/BUILD.gn View 1 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/codecs/h264/h264.gypi View 1 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc View 1 4 chunks +13 lines, -12 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
hbos
Please take a look stefan, kjellander. https://codereview.webrtc.org/1639273002/diff/1/webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc File webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc (right): https://codereview.webrtc.org/1639273002/diff/1/webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc#newcode39 webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc:39: rtc::CriticalSection ffmpeg_init_lock; Is ...
4 years, 11 months ago (2016-01-27 13:35:42 UTC) #3
stefan-webrtc
https://codereview.webrtc.org/1639273002/diff/1/webrtc/modules/video_coding/BUILD.gn File webrtc/modules/video_coding/BUILD.gn (right): https://codereview.webrtc.org/1639273002/diff/1/webrtc/modules/video_coding/BUILD.gn#newcode143 webrtc/modules/video_coding/BUILD.gn:143: if (!rtc_skip_ffmpeg_init) { Doesn't it make more sense to ...
4 years, 11 months ago (2016-01-27 14:00:39 UTC) #4
hbos
PTAL stefan. https://codereview.webrtc.org/1639273002/diff/1/webrtc/modules/video_coding/BUILD.gn File webrtc/modules/video_coding/BUILD.gn (right): https://codereview.webrtc.org/1639273002/diff/1/webrtc/modules/video_coding/BUILD.gn#newcode143 webrtc/modules/video_coding/BUILD.gn:143: if (!rtc_skip_ffmpeg_init) { On 2016/01/27 14:00:38, stefan-webrtc ...
4 years, 10 months ago (2016-01-28 10:31:09 UTC) #7
stefan-webrtc
lgtm for webrtc/modules https://codereview.webrtc.org/1639273002/diff/1/webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc File webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc (right): https://codereview.webrtc.org/1639273002/diff/1/webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc#newcode39 webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc:39: rtc::CriticalSection ffmpeg_init_lock; On 2016/01/28 10:31:09, hbos ...
4 years, 10 months ago (2016-01-28 10:39:46 UTC) #9
hbos
Thanks. Please take a look, kjellander.
4 years, 10 months ago (2016-01-28 10:49:01 UTC) #11
kjellander_webrtc
*.gyp*, *.gn*: lgtm
4 years, 10 months ago (2016-02-01 20:41:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639273002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639273002/60001
4 years, 10 months ago (2016-02-02 09:22:16 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 10 months ago (2016-02-02 10:26:15 UTC) #16
commit-bot: I haz the power
4 years, 10 months ago (2016-02-02 10:31:07 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c5a39c25919191cec1b838a7e83ac028bb2e9d85
Cr-Commit-Position: refs/heads/master@{#11456}

Powered by Google App Engine
This is Rietveld 408576698