History

Replace all CODEC_ID_* with AV_CODEC_ID_*

Anton Khirnov committed 14 years ago

Commit 36ef5361 parent 104e10f582 files · +3512 −3512Browse files

Showing the changes to libavcodec/api-example.c (1 of 582 files). Show all

Unified · Split

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

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