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

Issue 2466993003: H264SpsPpsTracker class which keep tracks of SPS/PPS. (Closed)

Created:
4 years, 1 month ago by philipel
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, danilchap, zhuangzesen_agora.io, zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

H264SpsPpsTracker class which keep tracks of SPS/PPS. The H264SpsPpsTracker class: - Keeps track of all received SPS/PPS. - Decides whether a packet should be inserted into the PacketBuffer or not. - Don't insert if this packet only contains SPS and/or PPS. - Don't insert if this is the first packet of and IDR and we have not received the required SPS/PPS. - Insert start codes, and in the case of the first packet of an IDR prepend the bitstream with the given SPS/PPS for this IDR. BUG=webrtc:5514 Committed: https://crrev.com/34852cf7072fb7eb596da10dce7a80798c7e8743 Cr-Commit-Position: refs/heads/master@{#14906}

Patch Set 1 #

Patch Set 2 #

Total comments: 13

Patch Set 3 : Feedback fixes. #

Total comments: 6

Patch Set 4 : Feedback fixes. #

Total comments: 4

Patch Set 5 : Check bounds before memcpy. #

Patch Set 6 : Maybe Win fix? #

Patch Set 7 : Win fix. #

Patch Set 8 : Free copied data #

Unified diffs Side-by-side diffs Delta from patch set Stats (+500 lines, -0 lines) Patch
M webrtc/modules/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/include/module_common_types.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc View 3 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/modules/video_coding/h264_sps_pps_tracker.h View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A webrtc/modules/video_coding/h264_sps_pps_tracker.cc View 1 2 3 4 1 chunk +182 lines, -0 lines 0 comments Download
A webrtc/modules/video_coding/h264_sps_pps_tracker_unittest.cc View 1 2 3 4 5 6 7 1 chunk +260 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
philipel
4 years, 1 month ago (2016-11-02 12:03:41 UTC) #2
philipel
4 years, 1 month ago (2016-11-02 12:13:33 UTC) #4
stefan-webrtc
What if packets are received where we don't have the sps/pps because that packet has ...
4 years, 1 month ago (2016-11-02 13:54:17 UTC) #5
philipel
https://codereview.webrtc.org/2466993003/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc File webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc (right): https://codereview.webrtc.org/2466993003/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc#newcode414 webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc:414: nalu.offset = start_offset; On 2016/11/02 13:54:17, stefan-webrtc (holmer) wrote: ...
4 years, 1 month ago (2016-11-02 14:39:43 UTC) #6
stefan-webrtc
https://codereview.webrtc.org/2466993003/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/2466993003/diff/20001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc#newcode129 webrtc/modules/video_coding/h264_sps_pps_tracker.cc:129: // to the bitstream with start codes inserted. On ...
4 years, 1 month ago (2016-11-02 14:54:38 UTC) #7
philipel
https://codereview.webrtc.org/2466993003/diff/40001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc File webrtc/modules/video_coding/h264_sps_pps_tracker.cc (right): https://codereview.webrtc.org/2466993003/diff/40001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc#newcode37 webrtc/modules/video_coding/h264_sps_pps_tracker.cc:37: // to avoid frames being created contining only these ...
4 years, 1 month ago (2016-11-02 15:11:07 UTC) #8
stefan-webrtc
https://codereview.webrtc.org/2466993003/diff/60001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc File webrtc/modules/video_coding/h264_sps_pps_tracker.cc (right): https://codereview.webrtc.org/2466993003/diff/60001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc#newcode154 webrtc/modules/video_coding/h264_sps_pps_tracker.cc:154: // The first two bytes describes the length of ...
4 years, 1 month ago (2016-11-02 15:14:39 UTC) #9
philipel
https://codereview.webrtc.org/2466993003/diff/60001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc File webrtc/modules/video_coding/h264_sps_pps_tracker.cc (right): https://codereview.webrtc.org/2466993003/diff/60001/webrtc/modules/video_coding/h264_sps_pps_tracker.cc#newcode154 webrtc/modules/video_coding/h264_sps_pps_tracker.cc:154: // The first two bytes describes the length of ...
4 years, 1 month ago (2016-11-02 15:41:05 UTC) #10
stefan-webrtc
lgtm
4 years, 1 month ago (2016-11-02 15:56:37 UTC) #11
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/2466993003/140001
4 years, 1 month ago (2016-11-03 10:41:28 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-03 11:03:04 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 11:03:12 UTC) #25
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/34852cf7072fb7eb596da10dce7a80798c7e8743
Cr-Commit-Position: refs/heads/master@{#14906}

Powered by Google App Engine
This is Rietveld 408576698