Permalink
Browse files

examples/decoding_encoding.c: switch to h264

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information...
1 parent 0556eee commit 82d9fafbb80ee561baa49e8593d2850aa8197459 @michaelni michaelni committed Oct 17, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 doc/examples/decoding_encoding.c
View
6 doc/examples/decoding_encoding.c
@@ -204,7 +204,7 @@ static void video_encode_example(const char *filename)
printf("Video encoding\n");
/* find the mpeg1 video encoder */
- codec = avcodec_find_encoder(CODEC_ID_MPEG1VIDEO);
+ codec = avcodec_find_encoder(CODEC_ID_H264);
if (!codec) {
fprintf(stderr, "codec not found\n");
exit(1);
@@ -445,8 +445,8 @@ int main(int argc, char **argv)
audio_encode_example("/tmp/test.mp2");
audio_decode_example("/tmp/test.sw", "/tmp/test.mp2");
- video_encode_example("/tmp/test.mpg");
- filename = "/tmp/test.mpg";
+ video_encode_example("/tmp/test.h264");
+ filename = "/tmp/test.h264";
} else {
filename = argv[1];
}

0 comments on commit 82d9faf

Please sign in to comment.