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
bfb1a946
Commit
bfb1a946
authored
Oct 27, 2017
by
Nicolas George
Committed by
Jan Ekström
Oct 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/avio_reading: return AVERROR_EOF at EOF.
Signed-off-by:
Nicolas George
<
george@nsup.org
>
parent
f80224ed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
avio_reading.c
doc/examples/avio_reading.c
+2
-0
No files found.
doc/examples/avio_reading.c
View file @
bfb1a946
...
@@ -44,6 +44,8 @@ static int read_packet(void *opaque, uint8_t *buf, int buf_size)
...
@@ -44,6 +44,8 @@ static int read_packet(void *opaque, uint8_t *buf, int buf_size)
struct
buffer_data
*
bd
=
(
struct
buffer_data
*
)
opaque
;
struct
buffer_data
*
bd
=
(
struct
buffer_data
*
)
opaque
;
buf_size
=
FFMIN
(
buf_size
,
bd
->
size
);
buf_size
=
FFMIN
(
buf_size
,
bd
->
size
);
if
(
!
buf_size
)
return
AVERROR_EOF
;
printf
(
"ptr:%p size:%zu
\n
"
,
bd
->
ptr
,
bd
->
size
);
printf
(
"ptr:%p size:%zu
\n
"
,
bd
->
ptr
,
bd
->
size
);
/* copy internal buffer data to buf */
/* copy internal buffer data to buf */
...
...
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