avconv.c:2536: error: Null Dereference
  pointer `mid` last assigned on line 2536 could be null and is dereferenced at line 2536, column 5.

avconv.c:2528:1: start of procedure opt_metadata()
2526. }
2527. 
2528. static int opt_metadata(const char *opt, const char *arg)
      ^
2529. {
2530.     char *mid= strchr(arg, '=');

avconv.c:2530:5: 
2528. static int opt_metadata(const char *opt, const char *arg)
2529. {
2530.     char *mid= strchr(arg, '=');
          ^
2531. 
2532.     if(!mid){

avconv.c:2532:9: Taking true branch
2530.     char *mid= strchr(arg, '=');
2531. 
2532.     if(!mid){
              ^
2533.         fprintf(stderr, "Missing =\n");
2534.         exit_program(1);

avconv.c:2533:9: 
2531. 
2532.     if(!mid){
2533.         fprintf(stderr, "Missing =\n");
              ^
2534.         exit_program(1);
2535.     }

avconv.c:2534:9: Skipping exit_program(): empty list of specs
2532.     if(!mid){
2533.         fprintf(stderr, "Missing =\n");
2534.         exit_program(1);
              ^
2535.     }
2536.     *mid++= 0;

avconv.c:2536:5: 
2534.         exit_program(1);
2535.     }
2536.     *mid++= 0;
          ^
2537. 
2538.     av_dict_set(&metadata, arg, mid, 0);

static int opt_metadata(const char *opt, const char *arg)
{
    char *mid= strchr(arg, '=');
    if(!mid){
        fprintf(stderr, "Missing =\n");
        exit_program(1);
    }
    *mid++= 0;
    av_dict_set(&metadata, arg, mid, 0);
    return 0;
}
['static int opt_metadata(const char *opt, const char *arg)\n{\n    char *mid= strchr(arg, \'=\');\n    if(!mid){\n        fprintf(stderr, "Missing =\\n");\n        exit_program(1);\n    }\n    *mid++= 0;\n    av_dict_set(&metadata, arg, mid, 0);\n    return 0;\n}']