History

doc/examples: print operation filename in decoding_encoding.

Clément Bœsch committed 14 years ago

Commit 50df68f1 parent c6bbe3c1 file · +4 −4Browse files

Showing the changes to doc/examples/decoding_encoding.c (1 of 1 file). Show all

Unified · Split

doc/examples/decoding_encoding.c+4−4
@@ -54,7 +54,7 @@ static void audio_encode_example(const char *filename) · 53 unmodified lines
5454 float t, tincr;
5555 uint8_t *outbuf;
5656
57− printf("Audio encoding\n");
57+ printf("Encode audio file %s\n", filename);
5858
5959 /* find the MP2 encoder */
6060 codec = avcodec_find_encoder(CODEC_ID_MP2);
@@ -125,7 +125,7 @@ static void audio_decode_example(const char *outfilename, const char *filename) · 64 unmodified lines
125125
126126 av_init_packet(&avpkt);
127127
128− printf("Audio decoding\n");
128+ printf("Decode audio file %s\n", filename);
129129
130130 /* find the mpeg audio decoder */
131131 codec = avcodec_find_decoder(CODEC_ID_MP2);
@@ -219,7 +219,7 @@ static void video_encode_example(const char *filename, int codec_id) · 87 unmodified lines
219219 uint8_t *outbuf;
220220 int had_output=0;
221221
222− printf("Video encoding\n");
222+ printf("Encode video file %s\n", filename);
223223
224224 /* find the mpeg1 video encoder */
225225 codec = avcodec_find_encoder(codec_id);
@@ -351,7 +351,7 @@ static void video_decode_example(const char *outfilename, const char *filename) · 125 unmodified lines
351351 /* set end of buffer to 0 (this ensures that no overreading happens for damaged mpeg streams) */
352352 memset(inbuf + INBUF_SIZE, 0, FF_INPUT_BUFFER_PADDING_SIZE);
353353
354− printf("Video decoding\n");
354+ printf("Decode video file %s\n", filename);
355355
356356 /* find the mpeg1 video decoder */
357357 codec = avcodec_find_decoder(CODEC_ID_MPEG1VIDEO);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t