mirror of
https://github.com/samsonjs/media.git
synced 2026-06-28 05:29:33 +00:00
If hasOutputFormat is true, nalUnitLengthFieldLengthDiff will never be 0
This commit is contained in:
parent
896f63a3c3
commit
3b4d981891
1 changed files with 0 additions and 1 deletions
|
|
@ -101,7 +101,6 @@ import com.google.android.exoplayer2.video.AvcConfig;
|
|||
nalLengthData[0] = 0;
|
||||
nalLengthData[1] = 0;
|
||||
nalLengthData[2] = 0;
|
||||
if(nalUnitLengthFieldLength == 0) nalUnitLengthFieldLength = 4;
|
||||
int nalUnitLengthFieldLengthDiff = 4 - nalUnitLengthFieldLength;
|
||||
// NAL units are length delimited, but the decoder requires start code delimited units.
|
||||
// Loop until we've written the sample to the track output, replacing length delimiters with
|
||||
|
|
|
|||
Loading…
Reference in a new issue