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

ffmpeg.c:2829:1: start of procedure opt_metadata()
2827. }
2828. 
2829. static int opt_metadata(const char *opt, const char *arg)
      ^
2830. {
2831.     char *mid= strchr(arg, '=');

ffmpeg.c:2831:5: 
2829. static int opt_metadata(const char *opt, const char *arg)
2830. {
2831.     char *mid= strchr(arg, '=');
          ^
2832. 
2833.     if(!mid){

ffmpeg.c:2833:9: Taking true branch
2831.     char *mid= strchr(arg, '=');
2832. 
2833.     if(!mid){
              ^
2834.         fprintf(stderr, "Missing =\n");
2835.         ffmpeg_exit(1);

ffmpeg.c:2834:9: 
2832. 
2833.     if(!mid){
2834.         fprintf(stderr, "Missing =\n");
              ^
2835.         ffmpeg_exit(1);
2836.     }

ffmpeg.c:2835:9: Skipping ffmpeg_exit(): empty list of specs
2833.     if(!mid){
2834.         fprintf(stderr, "Missing =\n");
2835.         ffmpeg_exit(1);
              ^
2836.     }
2837.     *mid++= 0;

ffmpeg.c:2837:5: 
2835.         ffmpeg_exit(1);
2836.     }
2837.     *mid++= 0;
          ^
2838. 
2839.     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}']