Skip to content

Commit

Permalink
Merge pull request video-dev#1327 from mpromonet/master
Browse files Browse the repository at this point in the history
fix use of null pointer when SLICE is received before IDR
  • Loading branch information
mangui authored Sep 6, 2017
2 parents 193ee2e + 2303f0a commit b7d0774
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/demux/tsdemuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,10 @@
//NDR
case 1:
push = true;
if(debug && avcSample) {
if (!avcSample) {
avcSample = this.avcSample = createAVCSample(true,pes.pts,pes.dts,'');
}
if(debug) {
avcSample.debug += 'NDR ';
}
avcSample.frame = true;
Expand Down

0 comments on commit b7d0774

Please sign in to comment.