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
e2fd18d4
Commit
e2fd18d4
authored
Jul 24, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: factor AVStream st out
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6b38101d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
utils.c
libavformat/utils.c
+6
-4
No files found.
libavformat/utils.c
View file @
e2fd18d4
...
...
@@ -1383,6 +1383,7 @@ int av_read_frame(AVFormatContext *s, AVPacket *pkt)
const
int
genpts
=
s
->
flags
&
AVFMT_FLAG_GENPTS
;
int
eof
=
0
;
int
ret
;
AVStream
*
st
;
if
(
!
genpts
)
{
ret
=
s
->
packet_buffer
?
read_from_packet_buffer
(
&
s
->
packet_buffer
,
...
...
@@ -1452,11 +1453,12 @@ int av_read_frame(AVFormatContext *s, AVPacket *pkt)
return_packet
:
if
(
s
->
streams
[
pkt
->
stream_index
]
->
skip_samples
)
{
st
=
s
->
streams
[
pkt
->
stream_index
];
if
(
st
->
skip_samples
)
{
uint8_t
*
p
=
av_packet_new_side_data
(
pkt
,
AV_PKT_DATA_SKIP_SAMPLES
,
10
);
AV_WL32
(
p
,
s
->
streams
[
pkt
->
stream_index
]
->
skip_samples
);
av_log
(
s
,
AV_LOG_DEBUG
,
"demuxer injecting skip %d
\n
"
,
s
->
streams
[
pkt
->
stream_index
]
->
skip_samples
);
s
->
streams
[
pkt
->
stream_index
]
->
skip_samples
=
0
;
AV_WL32
(
p
,
s
t
->
skip_samples
);
av_log
(
s
,
AV_LOG_DEBUG
,
"demuxer injecting skip %d
\n
"
,
s
t
->
skip_samples
);
s
t
->
skip_samples
=
0
;
}
if
(
is_relative
(
pkt
->
dts
))
...
...
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