From fc5f6dfe9c365af63a3e3450d13bcdd84875280d Mon Sep 17 00:00:00 2001 From: Jan Klemkow Date: Mon, 22 Oct 2012 14:47:13 +0200 Subject: advtime: Fix compilation --- src/advtime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/advtime.c b/src/advtime.c index a13aaa6..e4efb34 100644 --- a/src/advtime.c +++ b/src/advtime.c @@ -63,7 +63,7 @@ static void video_decode_example(const char *outfilename, const char *filename) printf("Video decoding\n"); /* find the mpeg1 video decoder */ - codec = avcodec_find_decoder(AV_CODEC_ID_MPEG1VIDEO); + codec = avcodec_find_decoder(CODEC_ID_MPEG1VIDEO); if (!codec) { fprintf(stderr, "codec not found\n"); exit(1); @@ -159,7 +159,7 @@ static void video_decode_example(const char *outfilename, const char *filename) avcodec_close(c); av_free(c); - avcodec_free_frame(&picture); +// avcodec_free_frame(&picture); printf("\n"); } @@ -175,7 +175,7 @@ int main(int argc, char **argv) // if (fh == NULL) // return 1; - video_decode_example(argv[1], filename); + video_decode_example("out", argv[1]); // fclose(sh); return 0; -- cgit