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
6060 printf("Audio encoding\n");
6161
6262 /* find the MP2 encoder */
63− codec = avcodec_find_encoder(CODEC_ID_MP2);
63+ codec = avcodec_find_encoder(AV_CODEC_ID_MP2);
6464 if (!codec) {
6565 fprintf(stderr, "codec not found\n");
6666 exit(1);
@@ -130,7 +130,7 @@ static void audio_decode_example(const char *outfilename, const char *filename) · 63 unmodified lines
130130 printf("Audio decoding\n");
131131
132132 /* find the mpeg audio decoder */
133− codec = avcodec_find_decoder(CODEC_ID_MP2);
133+ codec = avcodec_find_decoder(AV_CODEC_ID_MP2);
134134 if (!codec) {
135135 fprintf(stderr, "codec not found\n");
136136 exit(1);
@@ -221,7 +221,7 @@ static void video_encode_example(const char *filename) · 84 unmodified lines
221221 printf("Video encoding\n");
222222
223223 /* find the mpeg1 video encoder */
224− codec = avcodec_find_encoder(CODEC_ID_MPEG1VIDEO);
224+ codec = avcodec_find_encoder(AV_CODEC_ID_MPEG1VIDEO);
225225 if (!codec) {
226226 fprintf(stderr, "codec not found\n");
227227 exit(1);
@@ -352,7 +352,7 @@ static void video_decode_example(const char *outfilename, const char *filename) · 124 unmodified lines
352352 printf("Video decoding\n");
353353
354354 /* find the mpeg1 video decoder */
355− codec = avcodec_find_decoder(CODEC_ID_MPEG1VIDEO);
355+ codec = avcodec_find_decoder(AV_CODEC_ID_MPEG1VIDEO);
356356 if (!codec) {
357357 fprintf(stderr, "codec not found\n");
358358 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