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

libavcodec/imgconvert.c:454:1: start of procedure deinterlace_bottom_field_inplace()
452. }
453. 
454. static void deinterlace_bottom_field_inplace(uint8_t *src1, int src_wrap,
     ^
455.                                              int width, int height)
456. {

libavcodec/imgconvert.c:460:5: 
458.     int y;
459.     uint8_t *buf;
460.     buf = av_malloc(width);
         ^
461. 
462.     src_m1 = src1;

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

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

libavutil/mem.c:69:9: Taking true branch
  67. 
  68.     /* let's disallow possible ambiguous cases */
  69.     if (size > (INT_MAX - 32) || !size)
              ^
  70.         return NULL;
  71. 

libavutil/mem.c:70:9: 
  68.     /* let's disallow possible ambiguous cases */
  69.     if (size > (INT_MAX - 32) || !size)
  70.         return NULL;
              ^
  71. 
  72. #if CONFIG_MEMALIGN_HACK

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

libavcodec/imgconvert.c:462:5: 
460.     buf = av_malloc(width);
461. 
462.     src_m1 = src1;
         ^
463.     memcpy(buf,src_m1,width);
464.     src_0=&src_m1[src_wrap];

libavcodec/imgconvert.c:463:5: 
461. 
462.     src_m1 = src1;
463.     memcpy(buf,src_m1,width);
         ^
464.     src_0=&src_m1[src_wrap];
465.     src_p1=&src_0[src_wrap];
