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
1bb77e51
Commit
1bb77e51
authored
Nov 20, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: rename 'os' variable to 'oc'
Output AVFormatContext is called 'oc' in most other places.
parent
b0641ab7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
avconv.c
avconv.c
+12
-12
No files found.
avconv.c
View file @
1bb77e51
...
@@ -1961,7 +1961,7 @@ static int transcode_init(OutputFile *output_files,
...
@@ -1961,7 +1961,7 @@ static int transcode_init(OutputFile *output_files,
int
nb_input_files
)
int
nb_input_files
)
{
{
int
ret
=
0
,
i
,
j
,
k
;
int
ret
=
0
,
i
,
j
,
k
;
AVFormatContext
*
o
s
;
AVFormatContext
*
o
c
;
AVCodecContext
*
codec
,
*
icodec
;
AVCodecContext
*
codec
,
*
icodec
;
OutputStream
*
ost
;
OutputStream
*
ost
;
InputStream
*
ist
;
InputStream
*
ist
;
...
@@ -1978,9 +1978,9 @@ static int transcode_init(OutputFile *output_files,
...
@@ -1978,9 +1978,9 @@ static int transcode_init(OutputFile *output_files,
/* output stream init */
/* output stream init */
for
(
i
=
0
;
i
<
nb_output_files
;
i
++
)
{
for
(
i
=
0
;
i
<
nb_output_files
;
i
++
)
{
o
s
=
output_files
[
i
].
ctx
;
o
c
=
output_files
[
i
].
ctx
;
if
(
!
o
s
->
nb_streams
&&
!
(
os
->
oformat
->
flags
&
AVFMT_NOSTREAMS
))
{
if
(
!
o
c
->
nb_streams
&&
!
(
oc
->
oformat
->
flags
&
AVFMT_NOSTREAMS
))
{
av_dump_format
(
o
s
,
i
,
os
->
filename
,
1
);
av_dump_format
(
o
c
,
i
,
oc
->
filename
,
1
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"Output file #%d does not contain any stream
\n
"
,
i
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"Output file #%d does not contain any stream
\n
"
,
i
);
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
}
}
...
@@ -1989,7 +1989,7 @@ static int transcode_init(OutputFile *output_files,
...
@@ -1989,7 +1989,7 @@ static int transcode_init(OutputFile *output_files,
/* for each output stream, we compute the right encoding parameters */
/* for each output stream, we compute the right encoding parameters */
for
(
i
=
0
;
i
<
nb_output_streams
;
i
++
)
{
for
(
i
=
0
;
i
<
nb_output_streams
;
i
++
)
{
ost
=
&
output_streams
[
i
];
ost
=
&
output_streams
[
i
];
o
s
=
output_files
[
ost
->
file_index
].
ctx
;
o
c
=
output_files
[
ost
->
file_index
].
ctx
;
ist
=
&
input_streams
[
ost
->
source_index
];
ist
=
&
input_streams
[
ost
->
source_index
];
if
(
ost
->
attachment_filename
)
if
(
ost
->
attachment_filename
)
...
@@ -2014,9 +2014,9 @@ static int transcode_init(OutputFile *output_files,
...
@@ -2014,9 +2014,9 @@ static int transcode_init(OutputFile *output_files,
codec
->
codec_type
=
icodec
->
codec_type
;
codec
->
codec_type
=
icodec
->
codec_type
;
if
(
!
codec
->
codec_tag
){
if
(
!
codec
->
codec_tag
){
if
(
!
o
s
->
oformat
->
codec_tag
if
(
!
o
c
->
oformat
->
codec_tag
||
av_codec_get_id
(
o
s
->
oformat
->
codec_tag
,
icodec
->
codec_tag
)
==
codec
->
codec_id
||
av_codec_get_id
(
o
c
->
oformat
->
codec_tag
,
icodec
->
codec_tag
)
==
codec
->
codec_id
||
av_codec_get_tag
(
o
s
->
oformat
->
codec_tag
,
icodec
->
codec_id
)
<=
0
)
||
av_codec_get_tag
(
o
c
->
oformat
->
codec_tag
,
icodec
->
codec_id
)
<=
0
)
codec
->
codec_tag
=
icodec
->
codec_tag
;
codec
->
codec_tag
=
icodec
->
codec_tag
;
}
}
...
@@ -2273,15 +2273,15 @@ static int transcode_init(OutputFile *output_files,
...
@@ -2273,15 +2273,15 @@ static int transcode_init(OutputFile *output_files,
/* open files and write file headers */
/* open files and write file headers */
for
(
i
=
0
;
i
<
nb_output_files
;
i
++
)
{
for
(
i
=
0
;
i
<
nb_output_files
;
i
++
)
{
o
s
=
output_files
[
i
].
ctx
;
o
c
=
output_files
[
i
].
ctx
;
o
s
->
interrupt_callback
=
int_cb
;
o
c
->
interrupt_callback
=
int_cb
;
if
(
avformat_write_header
(
o
s
,
&
output_files
[
i
].
opts
)
<
0
)
{
if
(
avformat_write_header
(
o
c
,
&
output_files
[
i
].
opts
)
<
0
)
{
snprintf
(
error
,
sizeof
(
error
),
"Could not write header for output file #%d (incorrect codec parameters ?)"
,
i
);
snprintf
(
error
,
sizeof
(
error
),
"Could not write header for output file #%d (incorrect codec parameters ?)"
,
i
);
ret
=
AVERROR
(
EINVAL
);
ret
=
AVERROR
(
EINVAL
);
goto
dump_format
;
goto
dump_format
;
}
}
assert_avoptions
(
output_files
[
i
].
opts
);
assert_avoptions
(
output_files
[
i
].
opts
);
if
(
strcmp
(
o
s
->
oformat
->
name
,
"rtp"
))
{
if
(
strcmp
(
o
c
->
oformat
->
name
,
"rtp"
))
{
want_sdp
=
0
;
want_sdp
=
0
;
}
}
}
}
...
...
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