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
42cf7f91
Commit
42cf7f91
authored
Jan 11, 2017
by
John Stebbins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dv: Don't return EIO upon EOF
parent
7cb9296d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
dv.c
libavformat/dv.c
+5
-2
No files found.
libavformat/dv.c
View file @
42cf7f91
...
...
@@ -484,11 +484,14 @@ static int dv_read_packet(AVFormatContext *s, AVPacket *pkt)
size
=
avpriv_dv_get_packet
(
c
->
dv_demux
,
pkt
);
if
(
size
<
0
)
{
int
ret
;
if
(
!
c
->
dv_demux
->
sys
)
return
AVERROR
(
EIO
);
size
=
c
->
dv_demux
->
sys
->
frame_size
;
if
(
avio_read
(
s
->
pb
,
c
->
buf
,
size
)
<=
0
)
return
AVERROR
(
EIO
);
ret
=
avio_read
(
s
->
pb
,
c
->
buf
,
size
);
if
(
ret
<=
0
)
return
ret
;
size
=
avpriv_dv_produce_packet
(
c
->
dv_demux
,
pkt
,
c
->
buf
,
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