Showing the changes to doc/examples/decoding_encoding.c (1 of 1 file). Show all
Unified · Split
| @@ -54,7 +54,7 @@ static void audio_encode_example(const char *filename) · 53 unmodified lines | ||
| 54 | 54 | float t, tincr; |
| 55 | 55 | uint8_t *outbuf; |
| 56 | 56 | |
| 57 | − printf("Audio encoding\n"); | |
| 57 | + printf("Encode audio file %s\n", filename); | |
| 58 | 58 | |
| 59 | 59 | /* find the MP2 encoder */ |
| 60 | 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 | 126 | av_init_packet(&avpkt); |
| 127 | 127 | |
| 128 | − printf("Audio decoding\n"); | |
| 128 | + printf("Decode audio file %s\n", filename); | |
| 129 | 129 | |
| 130 | 130 | /* find the mpeg audio decoder */ |
| 131 | 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 | 219 | uint8_t *outbuf; |
| 220 | 220 | int had_output=0; |
| 221 | 221 | |
| 222 | − printf("Video encoding\n"); | |
| 222 | + printf("Encode video file %s\n", filename); | |
| 223 | 223 | |
| 224 | 224 | /* find the mpeg1 video encoder */ |
| 225 | 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 | 351 | /* set end of buffer to 0 (this ensures that no overreading happens for damaged mpeg streams) */ |
| 352 | 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 | 356 | /* find the mpeg1 video decoder */ |
| 357 | 357 | codec = avcodec_find_decoder(CODEC_ID_MPEG1VIDEO); |