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

Issue 2638933002: H264SpsPpsTracker.InsertSpsPpsNalus() should accept Nalus with header. (Closed)

Created:
3 years, 11 months ago by johan
Modified:
3 years, 11 months ago
Reviewers:
philipel, sprang_webrtc
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

H264SpsPpsTracker.InsertSpsPpsNalus() should accept Nalus with header. - Changed method name to clarify that entire Nalus are expected. - Added unit test code. - Adjusted InsetSpsPpsNalus() implementation to above requirement. BUG=webrtc:5948 Review-Url: https://codereview.webrtc.org/2638933002 Cr-Commit-Position: refs/heads/master@{#16221} Committed: https://chromium.googlesource.com/external/webrtc/+/f53d7374cfa59440f777729d3a0b7dd39830d6ec

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add failure test cases and cleanup. #

Total comments: 6

Patch Set 3 : Remove reundant log msg. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -10 lines) Patch
M webrtc/modules/video_coding/h264_sps_pps_tracker.h View 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/h264_sps_pps_tracker.cc View 1 2 2 chunks +37 lines, -7 lines 0 comments Download
M webrtc/modules/video_coding/h264_sps_pps_tracker_unittest.cc View 1 1 chunk +60 lines, -0 lines 0 comments Download
M webrtc/video/rtp_stream_receiver.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 26 (13 generated)
johan
philipel@ original author of H264SpsPpsTracker. sprang@ Owner
3 years, 11 months ago (2017-01-17 16:06:41 UTC) #4
sprang_webrtc
https://codereview.webrtc.org/2638933002/diff/1/webrtc/modules/video_coding/h264_sps_pps_tracker_unittest.cc File webrtc/modules/video_coding/h264_sps_pps_tracker_unittest.cc (right): https://codereview.webrtc.org/2638933002/diff/1/webrtc/modules/video_coding/h264_sps_pps_tracker_unittest.cc#newcode265 webrtc/modules/video_coding/h264_sps_pps_tracker_unittest.cc:265: std::vector<uint8_t> data; Looks like you don't really need a ...
3 years, 11 months ago (2017-01-18 09:34:05 UTC) #8
johan
https://codereview.webrtc.org/2638933002/diff/1/webrtc/modules/video_coding/h264_sps_pps_tracker_unittest.cc File webrtc/modules/video_coding/h264_sps_pps_tracker_unittest.cc (right): https://codereview.webrtc.org/2638933002/diff/1/webrtc/modules/video_coding/h264_sps_pps_tracker_unittest.cc#newcode265 webrtc/modules/video_coding/h264_sps_pps_tracker_unittest.cc:265: std::vector<uint8_t> data; On 2017/01/18 09:34:05, språng wrote: > Looks ...
3 years, 11 months ago (2017-01-18 10:42:55 UTC) #11
philipel
lg https://codereview.webrtc.org/2638933002/diff/20001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc File webrtc/modules/video_coding/h264_sps_pps_tracker.cc (right): https://codereview.webrtc.org/2638933002/diff/20001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc#newcode188 webrtc/modules/video_coding/h264_sps_pps_tracker.cc:188: if (sps.size() < kNaluHeaderOffset) { Why do we ...
3 years, 11 months ago (2017-01-18 12:51:48 UTC) #12
johan
https://codereview.webrtc.org/2638933002/diff/20001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc File webrtc/modules/video_coding/h264_sps_pps_tracker.cc (right): https://codereview.webrtc.org/2638933002/diff/20001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc#newcode188 webrtc/modules/video_coding/h264_sps_pps_tracker.cc:188: if (sps.size() < kNaluHeaderOffset) { On 2017/01/18 12:51:48, philipel ...
3 years, 11 months ago (2017-01-18 14:26:04 UTC) #13
philipel
lgtm https://codereview.webrtc.org/2638933002/diff/20001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc File webrtc/modules/video_coding/h264_sps_pps_tracker.cc (right): https://codereview.webrtc.org/2638933002/diff/20001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc#newcode188 webrtc/modules/video_coding/h264_sps_pps_tracker.cc:188: if (sps.size() < kNaluHeaderOffset) { On 2017/01/18 14:26:04, ...
3 years, 11 months ago (2017-01-18 14:28:43 UTC) #14
johan
@sprang PTAL
3 years, 11 months ago (2017-01-19 15:44:13 UTC) #15
sprang_webrtc
lgtm
3 years, 11 months ago (2017-01-23 12:42:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2638933002/40001
3 years, 11 months ago (2017-01-23 15:15:49 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_baremetal/builds/17911) win_clang_dbg on master.tryserver.webrtc (JOB_FAILED, ...
3 years, 11 months ago (2017-01-23 15:16:20 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2638933002/40001
3 years, 11 months ago (2017-01-23 17:12:00 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/external/webrtc/+/f53d7374cfa59440f777729d3a0b7dd39830d6ec
3 years, 11 months ago (2017-01-23 17:29:39 UTC) #25
kjellander_webrtc
3 years, 11 months ago (2017-01-24 04:16:43 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.webrtc.org/2649113003/ by kjellander@webrtc.org.

The reason for reverting is: Triggers leak on Linux memcheck (non-default
trybot):

### BEGIN MEMORY TOOL REPORT (error hash=#0112A395AF2326BC#)
Command: ../Release/./modules_unittests
--isolated-script-test-output=/b/s/w/ioUlJCnu/output.json
--isolated-script-test-chartjson-output=/b/s/w/ioUlJCnu/chartjson-output.json
--gtest_filter=-CommonFormats/AudioProcessingTest*
Leak_DefinitelyLost
45 bytes in 1 blocks are definitely lost in loss record 118 of 277
  operator new[](unsigned long) (m_replacemalloc/vg_replace_malloc.c:363)
 
webrtc::video_coding::H264SpsPpsTracker::CopyAndFixBitstream(webrtc::VCMPacket*)
(/b/s/w/irJgAGsR/out/Release/modules_unittests)
  webrtc::video_coding::TestH264SpsPpsTracker_SpsPpsOutOfBand_Test::TestBody()
(/b/s/w/irJgAGsR/out/Release/modules_unittests)
Suppression (error hash=#0112A395AF2326BC#):
  For more info on using suppressions see
http://dev.chromium.org/developers/tree-sheriffs/sheriff-details-chromium/mem...
{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   fun:_Zna*
  
fun:_ZN6webrtc12video_coding17H264SpsPpsTracker19CopyAndFixBitstreamEPNS_9VCMPacketE
  
fun:_ZN6webrtc12video_coding42TestH264SpsPpsTracker_SpsPpsOutOfBand_Test8TestBodyEv
}
### END MEMORY TOOL REPORT (error hash=#0112A395AF2326BC#)
.

Powered by Google App Engine
This is Rietveld 408576698