Chromium Code Reviews| Index: webrtc/modules/rtp_rtcp/source/rtp_format_vp9.cc | 
| diff --git a/webrtc/modules/rtp_rtcp/source/rtp_format_vp9.cc b/webrtc/modules/rtp_rtcp/source/rtp_format_vp9.cc | 
| index ed30fc1c7188e2989a79f5e05f06ca07081a3765..467de10cd3622f1b9395f48132b60bb4bcdb98b9 100644 | 
| --- a/webrtc/modules/rtp_rtcp/source/rtp_format_vp9.cc | 
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_format_vp9.cc | 
| @@ -748,7 +748,8 @@ bool RtpDepacketizerVp9::Parse(ParsedPayload* parsed_payload, | 
| parsed_payload->type.Video.height = vp9->height[0]; | 
| } | 
| } | 
| - parsed_payload->type.Video.isFirstPacket = b_bit && (vp9->spatial_idx == 0); | 
| + parsed_payload->type.Video.isFirstPacket = | 
| + b_bit && (!l_bit || !vp9->inter_layer_predicted); | 
| 
 
stefan-webrtc
2015/10/28 13:59:04
Add a test for this
 
philipel1
2015/10/29 14:49:26
Hmm... if I add a function to test this we either
 
 | 
| uint64_t rem_bits = parser.RemainingBitCount(); | 
| assert(rem_bits % 8 == 0); |