diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c index 2ddaeb1d52..88b8ea1f64 100644 --- a/libavcodec/apiexample.c +++ b/libavcodec/apiexample.c @@ -228,8 +228,6 @@ void video_encode_example(const char *filename) exit(1); } - /* the codec gives us the frame size, in samples */ - f = fopen(filename, "wb"); if (!f) { fprintf(stderr, "could not open %s\n", filename);