Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
fef9e841
Commit
fef9e841
authored
Aug 24, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/decoding_encoding.c: tell where the decoding output files are printed
parent
864e8adc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
decoding_encoding.c
doc/examples/decoding_encoding.c
+2
-2
No files found.
doc/examples/decoding_encoding.c
View file @
fef9e841
...
@@ -242,7 +242,7 @@ static void audio_decode_example(const char *outfilename, const char *filename)
...
@@ -242,7 +242,7 @@ static void audio_decode_example(const char *outfilename, const char *filename)
av_init_packet
(
&
avpkt
);
av_init_packet
(
&
avpkt
);
printf
(
"Decode audio file %s
\n
"
,
filename
);
printf
(
"Decode audio file %s
to %s
\n
"
,
filename
,
out
filename
);
/* find the mpeg audio decoder */
/* find the mpeg audio decoder */
codec
=
avcodec_find_decoder
(
AV_CODEC_ID_MP2
);
codec
=
avcodec_find_decoder
(
AV_CODEC_ID_MP2
);
...
@@ -491,7 +491,7 @@ static void video_decode_example(const char *outfilename, const char *filename)
...
@@ -491,7 +491,7 @@ static void video_decode_example(const char *outfilename, const char *filename)
/* set end of buffer to 0 (this ensures that no overreading happens for damaged mpeg streams) */
/* set end of buffer to 0 (this ensures that no overreading happens for damaged mpeg streams) */
memset
(
inbuf
+
INBUF_SIZE
,
0
,
FF_INPUT_BUFFER_PADDING_SIZE
);
memset
(
inbuf
+
INBUF_SIZE
,
0
,
FF_INPUT_BUFFER_PADDING_SIZE
);
printf
(
"Decode video file %s
\n
"
,
filename
);
printf
(
"Decode video file %s
to %s
\n
"
,
filename
,
out
filename
);
/* find the mpeg1 video decoder */
/* find the mpeg1 video decoder */
codec
=
avcodec_find_decoder
(
AV_CODEC_ID_MPEG1VIDEO
);
codec
=
avcodec_find_decoder
(
AV_CODEC_ID_MPEG1VIDEO
);
...
...
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