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

libavcodec/imgconvert.c:1214:1: start of procedure deinterlace_bottom_field_inplace()
1212. }
1213. 
1214. static void deinterlace_bottom_field_inplace(uint8_t *src1, int src_wrap,
      ^
1215.                                              int width, int height)
1216. {

libavcodec/imgconvert.c:1220:5: 
1218.     int y;
1219.     uint8_t *buf;
1220.     buf = (uint8_t*)av_malloc(width);
          ^
1221. 
1222.     src_m1 = src1;

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

libavutil/mem.c:66:5: 
  64. void *av_malloc(unsigned int 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-16) )
             ^
  73.         return NULL;
  74. 

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

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

libavcodec/imgconvert.c:1222:5: 
1220.     buf = (uint8_t*)av_malloc(width);
1221. 
1222.     src_m1 = src1;
          ^
1223.     memcpy(buf,src_m1,width);
1224.     src_0=&src_m1[src_wrap];

libavcodec/imgconvert.c:1223:5: 
1221. 
1222.     src_m1 = src1;
1223.     memcpy(buf,src_m1,width);
          ^
1224.     src_0=&src_m1[src_wrap];
1225.     src_p1=&src_0[src_wrap];
