]> git.sesse.net Git - ffmpeg/blobdiff - output_example.c
Make v4l_read_header() don't free a stream in case of failure when
[ffmpeg] / output_example.c
index cb631d599d84a6fe065214d6474ad4c08ef3c7ef..515a172661103956825b9597e6aed1bd9fdf6565 100644 (file)
@@ -31,8 +31,8 @@
 #define M_PI 3.14159265358979323846
 #endif
 
-#include "avformat.h"
-#include "swscale.h"
+#include "libavformat/avformat.h"
+#include "libswscale/swscale.h"
 
 #undef exit
 
@@ -538,7 +538,7 @@ int main(int argc, char **argv)
 
     if (!(fmt->flags & AVFMT_NOFILE)) {
         /* close the output file */
-        url_fclose(&oc->pb);
+        url_fclose(oc->pb);
     }
 
     /* free the stream */