mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Reset nal unit type after key frame determination
This commit is contained in:
parent
07150b816f
commit
c144420be8
@ -518,9 +518,9 @@ public final class H264Reader implements ElementaryStreamReader {
|
||||
sampleIsKeyframe = false;
|
||||
readingSample = true;
|
||||
}
|
||||
setSampleIsKeyframe();
|
||||
// Reset NAL unit type to avoid stale state
|
||||
nalUnitType = NalUnitUtil.H264_NAL_UNIT_TYPE_UNSPECIFIED;
|
||||
setSampleIsKeyframe();
|
||||
return sampleIsKeyframe;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user