Fixed TS input H265 keyframe detection
This commit is contained in:
parent
61c08be425
commit
b3eb7443f9
1 changed files with 5 additions and 2 deletions
|
@ -856,7 +856,7 @@ namespace TS{
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
}else if (pidToCodec[tid] == H265){
|
}else if (pidToCodec[tid] == H265){
|
||||||
typeNal = (((pesPayload[0] & 0x7E) >> 1) & 0xFF);
|
typeNal = (pesPayload[0] & 0x7E) >> 1;
|
||||||
switch (typeNal){
|
switch (typeNal){
|
||||||
case 2:
|
case 2:
|
||||||
case 3: // TSA Picture
|
case 3: // TSA Picture
|
||||||
|
@ -865,7 +865,10 @@ namespace TS{
|
||||||
case 6:
|
case 6:
|
||||||
case 7: // RADL Picture
|
case 7: // RADL Picture
|
||||||
case 8:
|
case 8:
|
||||||
case 9: // RASL Picture
|
case 9:{// RASL Picture
|
||||||
|
isKeyFrame = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case 16:
|
case 16:
|
||||||
case 17:
|
case 17:
|
||||||
case 18: // BLA Picture
|
case 18: // BLA Picture
|
||||||
|
|
Loading…
Add table
Reference in a new issue