A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cisco/openh264/commit/1c47e719e1be55d968dae01b8a004bdcd822bba8 below:

Pass the actual temporal id to GMPVideoEncodedFrame (#3828) · cisco/openh264@1c47e71 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+4

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+4

-1

lines changed Original file line number Diff line number Diff line change

@@ -708,10 +708,13 @@ class OpenH264VideoEncoder : public GMPVideoEncoder, public RefCounted {

708 708

// Buffer up the data.

709 709

uint32_t length = 0;

710 710

std::vector<uint32_t> lengths;

711 +

unsigned char temporalId = 0;

711 712 712 713

for (int i = 0; i < encoded->iLayerNum; ++i) {

713 714

lengths.push_back (0);

714 715

uint8_t* tmp = encoded->sLayerInfo[i].pBsBuf;

716 +

assert(encoded->sLayerInfo[i].uiSpatialId == 0);

717 +

temporalId = encoded->sLayerInfo[i].uiTemporalId;

715 718

for (int j = 0; j < encoded->sLayerInfo[i].iNalCount; ++j) {

716 719

lengths[i] += encoded->sLayerInfo[i].pNalLengthInByte[j];

717 720

// Convert from 4-byte start codes to GMP_BufferLength32 (NAL lengths)

@@ -746,7 +749,7 @@ class OpenH264VideoEncoder : public GMPVideoEncoder, public RefCounted {

746 749

f->SetBufferType (GMP_BufferLength32);

747 750 748 751

if (gmp_api_version_ >= kGMPVersion36) {

749 -

f->SetTemporalLayerId (encoded->iLayerNum);

752 +

f->SetTemporalLayerId (temporalId);

750 753

}

751 754 752 755

GMPLOG (GL_DEBUG, "Encoding complete. type= "

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4