diff --git a/erizo/src/erizo/rtp/LayerDetectorHandler.cpp b/erizo/src/erizo/rtp/LayerDetectorHandler.cpp index 24ecd01fe8..537ebe0af5 100644 --- a/erizo/src/erizo/rtp/LayerDetectorHandler.cpp +++ b/erizo/src/erizo/rtp/LayerDetectorHandler.cpp @@ -137,6 +137,10 @@ void LayerDetectorHandler::parseLayerInfoFromVP9(std::shared_ptr pac RTPPayloadVP9* payload = vp9_parser_.parseVP9( start_buffer, packet->length - rtp_header->getHeaderLength()); + if (payload->hasPictureID) { + packet->picture_id = payload->pictureID; + } + int spatial_layer = payload->spatialID; packet->compatible_spatial_layers = {}; diff --git a/erizo/src/erizo/rtp/RtpVP9Parser.cpp b/erizo/src/erizo/rtp/RtpVP9Parser.cpp index 3570de17b5..0af9f5a5ef 100644 --- a/erizo/src/erizo/rtp/RtpVP9Parser.cpp +++ b/erizo/src/erizo/rtp/RtpVP9Parser.cpp @@ -97,6 +97,8 @@ RTPPayloadVP9* RtpVP9Parser::parseVP9(unsigned char* data, int dataLength) { dataPtr++; len--; } + vp9->temporalID = 0; + vp9->spatialID = 0; if (vp9->hasLayerIndices) { vp9->temporalID = (*dataPtr & 0xE0) >> 5; // T bits