libavcodec/imgconvert.c:1006: error: Null Dereference
  pointer `buf` last assigned on line 1003 could be null and is dereferenced by call to `memcpy()` at line 1006, column 5.

libavcodec/imgconvert.c:997:1: start of procedure deinterlace_bottom_field_inplace()
995. }
996. 
997. static void deinterlace_bottom_field_inplace(uint8_t *src1, int src_wrap,
     ^
998.                                              int width, int height)
999. {

libavcodec/imgconvert.c:1003:5: 
1001.     int y;
1002.     uint8_t *buf;
1003.     buf = av_malloc(width);
          ^
1004. 
1005.     src_m1 = src1;

libavutil/mem.c:64:1: start of procedure av_malloc()
  62.    linker will do it automatically. */
  63. 
  64. void *av_malloc(size_t size)
      ^
  65. {
  66.     void *ptr = NULL;

libavutil/mem.c:66:5: 
  64. void *av_malloc(size_t size)
  65. {
  66.     void *ptr = NULL;
          ^
  67. #if CONFIG_MEMALIGN_HACK
  68.     long diff;

libavutil/mem.c:72:8: Taking true branch
  70. 
  71.     /* let's disallow possible ambiguous cases */
  72.     if(size > (INT_MAX-32) )
             ^
  73.         return NULL;
  74. 

libavutil/mem.c:73:9: 
  71.     /* let's disallow possible ambiguous cases */
  72.     if(size > (INT_MAX-32) )
  73.         return NULL;
              ^
  74. 
  75. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:115:1: return from a call to av_malloc
  113. #endif
  114.     return ptr;
  115. }
       ^
  116. 
  117. void *av_realloc(void *ptr, size_t size)

libavcodec/imgconvert.c:1005:5: 
1003.     buf = av_malloc(width);
1004. 
1005.     src_m1 = src1;
          ^
1006.     memcpy(buf,src_m1,width);
1007.     src_0=&src_m1[src_wrap];

libavcodec/imgconvert.c:1006:5: 
1004. 
1005.     src_m1 = src1;
1006.     memcpy(buf,src_m1,width);
          ^
1007.     src_0=&src_m1[src_wrap];
1008.     src_p1=&src_0[src_wrap];
