Skip to content

Commit

Permalink
TSDemuxer: don't report parsing error on empty NALU
Browse files Browse the repository at this point in the history
related to #569
  • Loading branch information
mangui committed Mar 2, 2017
1 parent 1f98837 commit 81ec72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/mangui/hls/demux/TSDemuxer.as
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ package org.mangui.hls.demux {
Log.debug("TS: SEI parsing error : " + error.message);
}
}
} else if (frame.type == 0) {
} else if (frame.type == 0 && frame.length) {
// report parsing error
if(_callback_error != null) {
_callback_error("TS: invalid NALu type found, corrupted fragment ?");
Expand Down

0 comments on commit 81ec72a

Please sign in to comment.