History

examples/decoding_encoding.c: switch to h264

Michael Niedermayer committed 15 years ago

Commit 82d9faf1 parent 0556eee1 file · +3 −3Browse files

Unified · Split

doc/examples/decoding_encoding.c+3−3
@@ -204,7 +204,7 @@ static void video_encode_example(const char *filename) · 203 unmodified lines
204204 printf("Video encoding\n");
205205
206206 /* find the mpeg1 video encoder */
207− codec = avcodec_find_encoder(CODEC_ID_MPEG1VIDEO);
207+ codec = avcodec_find_encoder(CODEC_ID_H264);
208208 if (!codec) {
209209 fprintf(stderr, "codec not found\n");
210210 exit(1);
@@ -445,8 +445,8 @@ int main(int argc, char **argv) · 234 unmodified lines
445445 audio_encode_example("/tmp/test.mp2");
446446 audio_decode_example("/tmp/test.sw", "/tmp/test.mp2");
447447
448− video_encode_example("/tmp/test.mpg");
449− filename = "/tmp/test.mpg";
448+ video_encode_example("/tmp/test.h264");
449+ filename = "/tmp/test.h264";
450450 } else {
451451 filename = argv[1];
452452 }

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