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

ffmpeg.c:2777:1: start of procedure opt_metadata()
2775. }
2776. 
2777. static int opt_metadata(const char *opt, const char *arg)
      ^
2778. {
2779.     char *mid= strchr(arg, '=');

ffmpeg.c:2779:5: 
2777. static int opt_metadata(const char *opt, const char *arg)
2778. {
2779.     char *mid= strchr(arg, '=');
          ^
2780. 
2781.     if(!mid){

ffmpeg.c:2781:9: Taking true branch
2779.     char *mid= strchr(arg, '=');
2780. 
2781.     if(!mid){
              ^
2782.         fprintf(stderr, "Missing =\n");
2783.         ffmpeg_exit(1);

ffmpeg.c:2782:9: 
2780. 
2781.     if(!mid){
2782.         fprintf(stderr, "Missing =\n");
              ^
2783.         ffmpeg_exit(1);
2784.     }

ffmpeg.c:2783:9: Skipping ffmpeg_exit(): empty list of specs
2781.     if(!mid){
2782.         fprintf(stderr, "Missing =\n");
2783.         ffmpeg_exit(1);
              ^
2784.     }
2785.     *mid++= 0;

ffmpeg.c:2785:5: 
2783.         ffmpeg_exit(1);
2784.     }
2785.     *mid++= 0;
          ^
2786. 
2787.     av_metadata_set2(&metadata, arg, mid, 0);

static int opt_metadata(const char *opt, const char *arg)
{
    char *mid= strchr(arg, '=');
    if(!mid){
        fprintf(stderr, "Missing =\n");
        ffmpeg_exit(1);
    }
    *mid++= 0;
    av_metadata_set2(&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        ffmpeg_exit(1);\n    }\n    *mid++= 0;\n    av_metadata_set2(&metadata, arg, mid, 0);\n    return 0;\n}']