Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
767e95d5
Commit
767e95d5
authored
Feb 02, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/tty: add seeking support
parent
9216ad2e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tty.c
libavformat/tty.c
+3
-0
No files found.
libavformat/tty.c
View file @
767e95d5
...
@@ -156,6 +156,8 @@ static int read_packet(AVFormatContext *avctx, AVPacket *pkt)
...
@@ -156,6 +156,8 @@ static int read_packet(AVFormatContext *avctx, AVPacket *pkt)
pkt
->
size
=
av_get_packet
(
avctx
->
pb
,
pkt
,
n
);
pkt
->
size
=
av_get_packet
(
avctx
->
pb
,
pkt
,
n
);
if
(
pkt
->
size
<
0
)
if
(
pkt
->
size
<
0
)
return
pkt
->
size
;
return
pkt
->
size
;
pkt
->
stream_index
=
0
;
pkt
->
pts
=
pkt
->
pos
/
n
;
pkt
->
flags
|=
AV_PKT_FLAG_KEY
;
pkt
->
flags
|=
AV_PKT_FLAG_KEY
;
return
0
;
return
0
;
}
}
...
@@ -185,4 +187,5 @@ AVInputFormat ff_tty_demuxer = {
...
@@ -185,4 +187,5 @@ AVInputFormat ff_tty_demuxer = {
.
read_packet
=
read_packet
,
.
read_packet
=
read_packet
,
.
extensions
=
tty_extensions
,
.
extensions
=
tty_extensions
,
.
priv_class
=
&
tty_demuxer_class
,
.
priv_class
=
&
tty_demuxer_class
,
.
flags
=
AVFMT_GENERIC_INDEX
,
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment