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
392aa6e4
Commit
392aa6e4
authored
Jun 24, 2011
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ogg_read_packet: forward error code.
parent
dca3542d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
oggdec.c
libavformat/oggdec.c
+7
-5
No files found.
libavformat/oggdec.c
View file @
392aa6e4
...
...
@@ -550,15 +550,16 @@ static int ogg_read_packet(AVFormatContext *s, AVPacket *pkt)
{
struct
ogg
*
ogg
;
struct
ogg_stream
*
os
;
int
idx
=
-
1
;
int
idx
=
-
1
,
ret
;
int
pstart
,
psize
;
int64_t
fpos
,
pts
,
dts
;
//Get an ogg packet
retry:
do
{
if
(
ogg_packet
(
s
,
&
idx
,
&
pstart
,
&
psize
,
&
fpos
)
<
0
)
return
AVERROR
(
EIO
);
ret
=
ogg_packet
(
s
,
&
idx
,
&
pstart
,
&
psize
,
&
fpos
);
if
(
ret
<
0
)
return
ret
;
}
while
(
idx
<
0
||
!
s
->
streams
[
idx
]);
ogg
=
s
->
priv_data
;
...
...
@@ -572,8 +573,9 @@ retry:
os
->
keyframe_seek
=
0
;
//Alloc a pkt
if
(
av_new_packet
(
pkt
,
psize
)
<
0
)
return
AVERROR
(
EIO
);
ret
=
av_new_packet
(
pkt
,
psize
);
if
(
ret
<
0
)
return
ret
;
pkt
->
stream_index
=
idx
;
memcpy
(
pkt
->
data
,
os
->
buf
+
pstart
,
psize
);
...
...
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