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
98ef887a
Commit
98ef887a
authored
Oct 08, 2011
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegps: Use av_get_packet() instead of poorly emulating it.
parent
c2f2dfb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
mpeg.c
libavformat/mpeg.c
+1
-8
No files found.
libavformat/mpeg.c
View file @
98ef887a
...
...
@@ -566,14 +566,7 @@ static int mpegps_read_packet(AVFormatContext *s,
else
if
(
st
->
codec
->
bits_per_coded_sample
==
28
)
return
AVERROR
(
EINVAL
);
}
av_new_packet
(
pkt
,
len
);
ret
=
avio_read
(
s
->
pb
,
pkt
->
data
,
pkt
->
size
);
if
(
ret
<
0
)
{
pkt
->
size
=
0
;
}
else
if
(
ret
<
pkt
->
size
)
{
pkt
->
size
=
ret
;
memset
(
pkt
->
data
+
ret
,
0
,
FF_INPUT_BUFFER_PADDING_SIZE
);
}
ret
=
av_get_packet
(
s
->
pb
,
pkt
,
len
);
pkt
->
pts
=
pts
;
pkt
->
dts
=
dts
;
pkt
->
pos
=
dummy_pos
;
...
...
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