avconv.c:1299: error: Null Dereference
  pointer `vstats_file` last assigned on line 1289 could be null and is dereferenced by call to `fprintf()` at line 1299, column 9.

avconv.c:1280:1: start of procedure do_video_stats()
1278. }
1279. 
1280. static void do_video_stats(AVFormatContext *os, OutputStream *ost,
      ^
1281.                            int frame_size)
1282. {

avconv.c:1288:10: Taking true branch
1286. 
1287.     /* this is executed just the first time do_video_stats is called */
1288.     if (!vstats_file) {
               ^
1289.         vstats_file = fopen(vstats_filename, "w");
1290.         if (!vstats_file) {

avconv.c:1289:9: 
1287.     /* this is executed just the first time do_video_stats is called */
1288.     if (!vstats_file) {
1289.         vstats_file = fopen(vstats_filename, "w");
              ^
1290.         if (!vstats_file) {
1291.             perror("fopen");

avconv.c:1290:14: Taking true branch
1288.     if (!vstats_file) {
1289.         vstats_file = fopen(vstats_filename, "w");
1290.         if (!vstats_file) {
                   ^
1291.             perror("fopen");
1292.             exit_program(1);

avconv.c:1291:13: 
1289.         vstats_file = fopen(vstats_filename, "w");
1290.         if (!vstats_file) {
1291.             perror("fopen");
                  ^
1292.             exit_program(1);
1293.         }

avconv.c:1292:13: Skipping exit_program(): empty list of specs
1290.         if (!vstats_file) {
1291.             perror("fopen");
1292.             exit_program(1);
                  ^
1293.         }
1294.     }

avconv.c:1296:5: 
1294.     }
1295. 
1296.     enc = ost->st->codec;
          ^
1297.     if (enc->codec_type == AVMEDIA_TYPE_VIDEO) {
1298.         frame_number = ost->frame_number;

avconv.c:1297:9: Taking true branch
1295. 
1296.     enc = ost->st->codec;
1297.     if (enc->codec_type == AVMEDIA_TYPE_VIDEO) {
              ^
1298.         frame_number = ost->frame_number;
1299.         fprintf(vstats_file, "frame= %5d q= %2.1f ", frame_number, enc->coded_frame->quality/(float)FF_QP2LAMBDA);

avconv.c:1298:9: 
1296.     enc = ost->st->codec;
1297.     if (enc->codec_type == AVMEDIA_TYPE_VIDEO) {
1298.         frame_number = ost->frame_number;
              ^
1299.         fprintf(vstats_file, "frame= %5d q= %2.1f ", frame_number, enc->coded_frame->quality/(float)FF_QP2LAMBDA);
1300.         if (enc->flags&CODEC_FLAG_PSNR)

avconv.c:1299:9: 
1297.     if (enc->codec_type == AVMEDIA_TYPE_VIDEO) {
1298.         frame_number = ost->frame_number;
1299.         fprintf(vstats_file, "frame= %5d q= %2.1f ", frame_number, enc->coded_frame->quality/(float)FF_QP2LAMBDA);
              ^
1300.         if (enc->flags&CODEC_FLAG_PSNR)
1301.             fprintf(vstats_file, "PSNR= %6.2f ", psnr(enc->coded_frame->error[0]/(enc->width*enc->height*255.0*255.0)));
