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
ed647ab7
Commit
ed647ab7
authored
Jul 25, 2018
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/librtmp: fix returning EOF from Read/Write
Ticket #7052
parent
7ca892b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
librtmp.c
libavformat/librtmp.c
+8
-2
No files found.
libavformat/librtmp.c
View file @
ed647ab7
...
...
@@ -261,7 +261,10 @@ static int rtmp_write(URLContext *s, const uint8_t *buf, int size)
LibRTMPContext
*
ctx
=
s
->
priv_data
;
RTMP
*
r
=
&
ctx
->
rtmp
;
return
RTMP_Write
(
r
,
buf
,
size
);
int
ret
=
RTMP_Write
(
r
,
buf
,
size
);
if
(
!
ret
)
return
AVERROR_EOF
;
return
ret
;
}
static
int
rtmp_read
(
URLContext
*
s
,
uint8_t
*
buf
,
int
size
)
...
...
@@ -269,7 +272,10 @@ static int rtmp_read(URLContext *s, uint8_t *buf, int size)
LibRTMPContext
*
ctx
=
s
->
priv_data
;
RTMP
*
r
=
&
ctx
->
rtmp
;
return
RTMP_Read
(
r
,
buf
,
size
);
int
ret
=
RTMP_Read
(
r
,
buf
,
size
);
if
(
!
ret
)
return
AVERROR_EOF
;
return
ret
;
}
static
int
rtmp_read_pause
(
URLContext
*
s
,
int
pause
)
...
...
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