diff options
author | Jan Klemkow <j.klemkow@wemelug.de> | 2012-10-22 14:47:13 +0200 |
---|---|---|
committer | Jan Klemkow <j.klemkow@wemelug.de> | 2012-10-22 14:47:13 +0200 |
commit | fc5f6dfe9c365af63a3e3450d13bcdd84875280d (patch) | |
tree | 867650d8ffa0a4f940ab66ab98a43439ee0443fe /src | |
parent | 7e3edcfffc9d79284c3d5e106540987465e1d8ae (diff) | |
download | advtime-fc5f6dfe9c365af63a3e3450d13bcdd84875280d.tar.gz advtime-fc5f6dfe9c365af63a3e3450d13bcdd84875280d.tar.bz2 advtime-fc5f6dfe9c365af63a3e3450d13bcdd84875280d.zip |
advtime: Fix compilation
Diffstat (limited to 'src')
-rw-r--r-- | src/advtime.c | 6 |
1 files 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; |