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

avconv.c:1456:1: start of procedure do_video_stats()
1454. }
1455. 
1456. static void do_video_stats(AVFormatContext *os, OutputStream *ost,
      ^
1457.                            int frame_size)
1458. {

avconv.c:1464:10: Taking true branch
1462. 
1463.     /* this is executed just the first time do_video_stats is called */
1464.     if (!vstats_file) {
               ^
1465.         vstats_file = fopen(vstats_filename, "w");
1466.         if (!vstats_file) {

avconv.c:1465:9: 
1463.     /* this is executed just the first time do_video_stats is called */
1464.     if (!vstats_file) {
1465.         vstats_file = fopen(vstats_filename, "w");
              ^
1466.         if (!vstats_file) {
1467.             perror("fopen");

avconv.c:1466:14: Taking true branch
1464.     if (!vstats_file) {
1465.         vstats_file = fopen(vstats_filename, "w");
1466.         if (!vstats_file) {
                   ^
1467.             perror("fopen");
1468.             exit_program(1);

avconv.c:1467:13: 
1465.         vstats_file = fopen(vstats_filename, "w");
1466.         if (!vstats_file) {
1467.             perror("fopen");
                  ^
1468.             exit_program(1);
1469.         }

avconv.c:1468:13: Skipping exit_program(): empty list of specs
1466.         if (!vstats_file) {
1467.             perror("fopen");
1468.             exit_program(1);
                  ^
1469.         }
1470.     }

avconv.c:1472:5: 
1470.     }
1471. 
1472.     enc = ost->st->codec;
          ^
1473.     if (enc->codec_type == AVMEDIA_TYPE_VIDEO) {
1474.         frame_number = ost->frame_number;

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

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

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