Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d469b29a
authored
2015-05-29 15:29:15 -0400
by
David LaPalomento
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Fix temporary warped display after seeking. Closes #290.
2 parents
64bbbe93
3bb31c64
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
29 deletions
src/h264-stream.js
src/segment-parser.js
src/h264-stream.js
View file @
d469b29
...
...
@@ -48,11 +48,9 @@
this
.
_state
=
0
;
// :uint;
this
.
_nextFrameKeyFrame
=
false
;
this
.
tags
=
[];
};
//(pts:uint):void
H264Stream
.
prototype
.
setTimeStampOffset
=
function
(
pts
)
{
this
.
_pts_offset
=
pts
;
...
...
@@ -97,11 +95,6 @@
this
.
_state
=
0
;
};
H264Stream
.
prototype
.
setNextFrameKeyFrame
=
function
()
{
this
.
_nextFrameKeyFrame
=
true
;
};
// (data:ByteArray, o:int, l:int):void
H264Stream
.
prototype
.
writeBytes
=
function
(
data
,
offset
,
length
)
{
var
...
...
@@ -263,11 +256,6 @@
this
.
_h264Frame
=
new
FlvTag
(
FlvTag
.
VIDEO_TAG
);
this
.
_h264Frame
.
pts
=
this
.
_next_pts
;
this
.
_h264Frame
.
dts
=
this
.
_next_dts
;
if
(
this
.
_nextFrameKeyFrame
)
{
this
.
_h264Frame
.
keyFrame
=
true
;
this
.
_nextFrameKeyFrame
=
false
;
}
}
this
.
_h264Frame
.
startNalUnit
();
...
...
src/segment-parser.js
View file @
d469b29
...
...
@@ -214,9 +214,6 @@
// adaptation_field_control, whether this header is followed by an
// adaptation field, a payload, or both
afflag
=
(
data
[
offset
+
3
]
&
0x30
)
>>>
4
,
adaptationFieldLength
,
afftemp
,
randomAccessIndicator
,
patTableId
,
// :int
patCurrentNextIndicator
,
// Boolean
...
...
@@ -253,19 +250,7 @@
// used to specify some forms of timing and control data that we
// do not currently use.
if
(
afflag
>
0x01
)
{
adaptationFieldLength
=
data
[
offset
];
if
(
adaptationFieldLength
>
0
)
{
afftemp
=
data
[
offset
+
1
];
randomAccessIndicator
=
(
afftemp
&
0x40
)
>>>
6
;
if
(
randomAccessIndicator
===
1
)
{
h264Stream
.
setNextFrameKeyFrame
();
}
}
offset
+=
adaptationFieldLength
+
1
;
offset
+=
data
[
offset
]
+
1
;
}
// Handle a Program Association Table (PAT). PATs map PIDs to
...
...
Please
register
or
sign in
to post a comment