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
b3e2975a
Commit
b3e2975a
authored
Sep 11, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/muxing: apply misc fixes to log messages
parent
1d0048cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
muxing.c
doc/examples/muxing.c
+5
-5
No files found.
doc/examples/muxing.c
View file @
b3e2975a
...
...
@@ -64,13 +64,13 @@ static AVStream *add_audio_stream(AVFormatContext *oc, AVCodec **codec,
/* find the audio encoder */
*
codec
=
avcodec_find_encoder
(
codec_id
);
if
(
!
(
*
codec
))
{
fprintf
(
stderr
,
"
codec not found
\n
"
);
fprintf
(
stderr
,
"
Could not find codec
\n
"
);
exit
(
1
);
}
st
=
avformat_new_stream
(
oc
,
*
codec
);
if
(
!
st
)
{
fprintf
(
stderr
,
"Could not alloc stream
\n
"
);
fprintf
(
stderr
,
"Could not alloc
ate
stream
\n
"
);
exit
(
1
);
}
st
->
id
=
1
;
...
...
@@ -243,7 +243,7 @@ static void open_video(AVFormatContext *oc, AVCodec *codec, AVStream *st)
/* open the codec */
if
(
avcodec_open2
(
c
,
codec
,
NULL
)
<
0
)
{
fprintf
(
stderr
,
"
c
ould not open codec
\n
"
);
fprintf
(
stderr
,
"
C
ould not open codec
\n
"
);
exit
(
1
);
}
...
...
@@ -330,7 +330,7 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st)
sws_flags
,
NULL
,
NULL
,
NULL
);
if
(
!
sws_ctx
)
{
fprintf
(
stderr
,
"C
an
not initialize the conversion context
\n
"
);
"C
ould
not initialize the conversion context
\n
"
);
exit
(
1
);
}
}
...
...
@@ -366,7 +366,7 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st)
ret
=
avcodec_encode_video2
(
c
,
&
pkt
,
frame
,
&
got_output
);
if
(
ret
<
0
)
{
fprintf
(
stderr
,
"
error encoding
frame
\n
"
);
fprintf
(
stderr
,
"
Error encoding video
frame
\n
"
);
exit
(
1
);
}
...
...
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