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
88161b2a
Commit
88161b2a
authored
Nov 21, 2012
by
Piotr Bandurski
Committed by
Michael Niedermayer
Nov 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
siff: signal EOF
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
9530439e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
siff.c
libavformat/siff.c
+4
-2
No files found.
libavformat/siff.c
View file @
88161b2a
...
@@ -192,7 +192,7 @@ static int siff_read_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -192,7 +192,7 @@ static int siff_read_packet(AVFormatContext *s, AVPacket *pkt)
if
(
c
->
has_video
){
if
(
c
->
has_video
){
if
(
c
->
cur_frame
>=
c
->
frames
)
if
(
c
->
cur_frame
>=
c
->
frames
)
return
AVERROR
(
EIO
)
;
return
AVERROR
_EOF
;
if
(
c
->
curstrm
==
-
1
){
if
(
c
->
curstrm
==
-
1
){
c
->
pktsize
=
avio_rl32
(
s
->
pb
)
-
4
;
c
->
pktsize
=
avio_rl32
(
s
->
pb
)
-
4
;
c
->
flags
=
avio_rl16
(
s
->
pb
);
c
->
flags
=
avio_rl16
(
s
->
pb
);
...
@@ -229,7 +229,9 @@ static int siff_read_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -229,7 +229,9 @@ static int siff_read_packet(AVFormatContext *s, AVPacket *pkt)
c
->
cur_frame
++
;
c
->
cur_frame
++
;
}
else
{
}
else
{
size
=
av_get_packet
(
s
->
pb
,
pkt
,
c
->
block_align
);
size
=
av_get_packet
(
s
->
pb
,
pkt
,
c
->
block_align
);
if
(
size
<=
0
)
if
(
!
size
)
return
AVERROR_EOF
;
if
(
size
<
0
)
return
AVERROR
(
EIO
);
return
AVERROR
(
EIO
);
pkt
->
duration
=
size
;
pkt
->
duration
=
size
;
}
}
...
...
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