Showing the changes to libavcodec/api-example.c (1 of 582 files). Show all
Unified · Split
| @@ -60,7 +60,7 @@ static void audio_encode_example(const char *filename) · 59 unmodified lines | ||
| 60 | 60 | printf("Audio encoding\n"); |
| 61 | 61 | |
| 62 | 62 | /* find the MP2 encoder */ |
| 63 | − codec = avcodec_find_encoder(CODEC_ID_MP2); | |
| 63 | + codec = avcodec_find_encoder(AV_CODEC_ID_MP2); | |
| 64 | 64 | if (!codec) { |
| 65 | 65 | fprintf(stderr, "codec not found\n"); |
| 66 | 66 | exit(1); |
| @@ -130,7 +130,7 @@ static void audio_decode_example(const char *outfilename, const char *filename) · 63 unmodified lines | ||
| 130 | 130 | printf("Audio decoding\n"); |
| 131 | 131 | |
| 132 | 132 | /* find the mpeg audio decoder */ |
| 133 | − codec = avcodec_find_decoder(CODEC_ID_MP2); | |
| 133 | + codec = avcodec_find_decoder(AV_CODEC_ID_MP2); | |
| 134 | 134 | if (!codec) { |
| 135 | 135 | fprintf(stderr, "codec not found\n"); |
| 136 | 136 | exit(1); |
| @@ -221,7 +221,7 @@ static void video_encode_example(const char *filename) · 84 unmodified lines | ||
| 221 | 221 | printf("Video encoding\n"); |
| 222 | 222 | |
| 223 | 223 | /* find the mpeg1 video encoder */ |
| 224 | − codec = avcodec_find_encoder(CODEC_ID_MPEG1VIDEO); | |
| 224 | + codec = avcodec_find_encoder(AV_CODEC_ID_MPEG1VIDEO); | |
| 225 | 225 | if (!codec) { |
| 226 | 226 | fprintf(stderr, "codec not found\n"); |
| 227 | 227 | exit(1); |
| @@ -352,7 +352,7 @@ static void video_decode_example(const char *outfilename, const char *filename) · 124 unmodified lines | ||
| 352 | 352 | printf("Video decoding\n"); |
| 353 | 353 | |
| 354 | 354 | /* find the mpeg1 video decoder */ |
| 355 | − codec = avcodec_find_decoder(CODEC_ID_MPEG1VIDEO); | |
| 355 | + codec = avcodec_find_decoder(AV_CODEC_ID_MPEG1VIDEO); | |
| 356 | 356 | if (!codec) { |
| 357 | 357 | fprintf(stderr, "codec not found\n"); |
| 358 | 358 | exit(1); |