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
50df68fd
Commit
50df68fd
authored
May 12, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/examples: print operation filename in decoding_encoding.
parent
c6bbe3c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
decoding_encoding.c
doc/examples/decoding_encoding.c
+4
-4
No files found.
doc/examples/decoding_encoding.c
View file @
50df68fd
...
...
@@ -54,7 +54,7 @@ static void audio_encode_example(const char *filename)
float
t
,
tincr
;
uint8_t
*
outbuf
;
printf
(
"
Audio encoding
\n
"
);
printf
(
"
Encode audio file %s
\n
"
,
filename
);
/* find the MP2 encoder */
codec
=
avcodec_find_encoder
(
CODEC_ID_MP2
);
...
...
@@ -125,7 +125,7 @@ static void audio_decode_example(const char *outfilename, const char *filename)
av_init_packet
(
&
avpkt
);
printf
(
"
Audio decoding
\n
"
);
printf
(
"
Decode audio file %s
\n
"
,
filename
);
/* find the mpeg audio decoder */
codec
=
avcodec_find_decoder
(
CODEC_ID_MP2
);
...
...
@@ -219,7 +219,7 @@ static void video_encode_example(const char *filename, int codec_id)
uint8_t
*
outbuf
;
int
had_output
=
0
;
printf
(
"
Video encoding
\n
"
);
printf
(
"
Encode video file %s
\n
"
,
filename
);
/* find the mpeg1 video encoder */
codec
=
avcodec_find_encoder
(
codec_id
);
...
...
@@ -351,7 +351,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) */
memset
(
inbuf
+
INBUF_SIZE
,
0
,
FF_INPUT_BUFFER_PADDING_SIZE
);
printf
(
"
Video decoding
\n
"
);
printf
(
"
Decode video file %s
\n
"
,
filename
);
/* find the mpeg1 video decoder */
codec
=
avcodec_find_decoder
(
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