Commit 82d9fafb authored by Michael Niedermayer's avatar Michael Niedermayer

examples/decoding_encoding.c: switch to h264

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0556eee4
...@@ -204,7 +204,7 @@ static void video_encode_example(const char *filename) ...@@ -204,7 +204,7 @@ static void video_encode_example(const char *filename)
printf("Video encoding\n"); printf("Video encoding\n");
/* find the mpeg1 video encoder */ /* find the mpeg1 video encoder */
codec = avcodec_find_encoder(CODEC_ID_MPEG1VIDEO); codec = avcodec_find_encoder(CODEC_ID_H264);
if (!codec) { if (!codec) {
fprintf(stderr, "codec not found\n"); fprintf(stderr, "codec not found\n");
exit(1); exit(1);
...@@ -445,8 +445,8 @@ int main(int argc, char **argv) ...@@ -445,8 +445,8 @@ int main(int argc, char **argv)
audio_encode_example("/tmp/test.mp2"); audio_encode_example("/tmp/test.mp2");
audio_decode_example("/tmp/test.sw", "/tmp/test.mp2"); audio_decode_example("/tmp/test.sw", "/tmp/test.mp2");
video_encode_example("/tmp/test.mpg"); video_encode_example("/tmp/test.h264");
filename = "/tmp/test.mpg"; filename = "/tmp/test.h264";
} else { } else {
filename = argv[1]; filename = argv[1];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment