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
a91943bc
Commit
a91943bc
authored
Jun 03, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
librtmp: don't abuse a variable for two unrelated things.
parent
007aedee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
librtmp.c
libavformat/librtmp.c
+8
-8
No files found.
libavformat/librtmp.c
View file @
a91943bc
...
...
@@ -81,19 +81,19 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
{
LibRTMPContext
*
ctx
=
s
->
priv_data
;
RTMP
*
r
=
&
ctx
->
rtmp
;
int
rc
=
0
;
int
rc
=
0
,
level
;
char
*
filename
=
s
->
filename
;
switch
(
av_log_get_level
())
{
default:
case
AV_LOG_FATAL
:
rc
=
RTMP_LOGCRIT
;
break
;
case
AV_LOG_ERROR
:
rc
=
RTMP_LOGERROR
;
break
;
case
AV_LOG_WARNING
:
rc
=
RTMP_LOGWARNING
;
break
;
case
AV_LOG_INFO
:
rc
=
RTMP_LOGINFO
;
break
;
case
AV_LOG_VERBOSE
:
rc
=
RTMP_LOGDEBUG
;
break
;
case
AV_LOG_DEBUG
:
rc
=
RTMP_LOGDEBUG2
;
break
;
case
AV_LOG_FATAL
:
level
=
RTMP_LOGCRIT
;
break
;
case
AV_LOG_ERROR
:
level
=
RTMP_LOGERROR
;
break
;
case
AV_LOG_WARNING
:
level
=
RTMP_LOGWARNING
;
break
;
case
AV_LOG_INFO
:
level
=
RTMP_LOGINFO
;
break
;
case
AV_LOG_VERBOSE
:
level
=
RTMP_LOGDEBUG
;
break
;
case
AV_LOG_DEBUG
:
level
=
RTMP_LOGDEBUG2
;
break
;
}
RTMP_LogSetLevel
(
rc
);
RTMP_LogSetLevel
(
level
);
RTMP_LogSetCallback
(
rtmp_log
);
if
(
ctx
->
app
||
ctx
->
playpath
)
{
...
...
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