diff options
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; |