diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-17 20:22:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-17 20:22:07 +0200 |
commit | 82d9fafbb80ee561baa49e8593d2850aa8197459 (patch) | |
tree | f53814035cb623c014dc20f1a566f8d2f1e66998 | |
parent | 0556eee43ff92f9c726494f2af52ee7d7c1e9a07 (diff) | |
download | ffmpeg-82d9fafbb80ee561baa49e8593d2850aa8197459.tar.gz |
examples/decoding_encoding.c: switch to h264
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | doc/examples/decoding_encoding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c index cd968dbf75..aedf5a46b2 100644 --- a/doc/examples/decoding_encoding.c +++ b/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]; } |