| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 LOG(LS_WARNING) << "Failed to parse PPS id from slice of type: " | 518 LOG(LS_WARNING) << "Failed to parse PPS id from slice of type: " |
| 519 << static_cast<int>(nalu.type); | 519 << static_cast<int>(nalu.type); |
| 520 } | 520 } |
| 521 break; | 521 break; |
| 522 } | 522 } |
| 523 // Slices below don't contain SPS or PPS ids. | 523 // Slices below don't contain SPS or PPS ids. |
| 524 case H264::NaluType::kAud: | 524 case H264::NaluType::kAud: |
| 525 case H264::NaluType::kEndOfSequence: | 525 case H264::NaluType::kEndOfSequence: |
| 526 case H264::NaluType::kEndOfStream: | 526 case H264::NaluType::kEndOfStream: |
| 527 case H264::NaluType::kFiller: | 527 case H264::NaluType::kFiller: |
| 528 break; | |
| 529 case H264::NaluType::kSei: | 528 case H264::NaluType::kSei: |
| 530 parsed_payload->frame_type = kVideoFrameKey; | |
| 531 break; | 529 break; |
| 532 case H264::NaluType::kStapA: | 530 case H264::NaluType::kStapA: |
| 533 case H264::NaluType::kFuA: | 531 case H264::NaluType::kFuA: |
| 534 LOG(LS_WARNING) << "Unexpected STAP-A or FU-A received."; | 532 LOG(LS_WARNING) << "Unexpected STAP-A or FU-A received."; |
| 535 return false; | 533 return false; |
| 536 } | 534 } |
| 537 RTPVideoHeaderH264* h264 = &parsed_payload->type.Video.codecHeader.H264; | 535 RTPVideoHeaderH264* h264 = &parsed_payload->type.Video.codecHeader.H264; |
| 538 if (h264->nalus_length == kMaxNalusPerPacket) { | 536 if (h264->nalus_length == kMaxNalusPerPacket) { |
| 539 LOG(LS_WARNING) | 537 LOG(LS_WARNING) |
| 540 << "Received packet containing more than " << kMaxNalusPerPacket | 538 << "Received packet containing more than " << kMaxNalusPerPacket |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 h264->packetization_type = kH264FuA; | 593 h264->packetization_type = kH264FuA; |
| 596 h264->nalu_type = original_nal_type; | 594 h264->nalu_type = original_nal_type; |
| 597 if (first_fragment) { | 595 if (first_fragment) { |
| 598 h264->nalus[h264->nalus_length] = nalu; | 596 h264->nalus[h264->nalus_length] = nalu; |
| 599 h264->nalus_length = 1; | 597 h264->nalus_length = 1; |
| 600 } | 598 } |
| 601 return true; | 599 return true; |
| 602 } | 600 } |
| 603 | 601 |
| 604 } // namespace webrtc | 602 } // namespace webrtc |
| OLD | NEW |