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
54 float t, tincr;54 float t, tincr;
55 uint8_t *outbuf;55 uint8_t *outbuf;
56 56
57 printf("Audio encoding\n");57 printf("Encode audio file %s\n", filename);
58 58
59 /* find the MP2 encoder */59 /* find the MP2 encoder */
60 codec = avcodec_find_encoder(CODEC_ID_MP2);60 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
125 125
126 av_init_packet(&avpkt);126 av_init_packet(&avpkt);
127 127
128 printf("Audio decoding\n");128 printf("Decode audio file %s\n", filename);
129 129
130 /* find the mpeg audio decoder */130 /* find the mpeg audio decoder */
131 codec = avcodec_find_decoder(CODEC_ID_MP2);131 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
219 uint8_t *outbuf;219 uint8_t *outbuf;
220 int had_output=0;220 int had_output=0;
221 221
222 printf("Video encoding\n");222 printf("Encode video file %s\n", filename);
223 223
224 /* find the mpeg1 video encoder */224 /* find the mpeg1 video encoder */
225 codec = avcodec_find_encoder(codec_id);225 codec = avcodec_find_encoder(codec_id);
@@ -351,7 +351,7 @@ static void video_decode_example(const char *outfilename, const char *filename) · 125 unmodified lines
351 /* set end of buffer to 0 (this ensures that no overreading happens for damaged mpeg streams) */351 /* set end of buffer to 0 (this ensures that no overreading happens for damaged mpeg streams) */
352 memset(inbuf + INBUF_SIZE, 0, FF_INPUT_BUFFER_PADDING_SIZE);352 memset(inbuf + INBUF_SIZE, 0, FF_INPUT_BUFFER_PADDING_SIZE);
353 353
354 printf("Video decoding\n");354 printf("Decode video file %s\n", filename);
355 355
356 /* find the mpeg1 video decoder */356 /* find the mpeg1 video decoder */
357 codec = avcodec_find_decoder(CODEC_ID_MPEG1VIDEO);357 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