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

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

libavcodec/imgconvert.c:457:5: 
455.     int y;
456.     uint8_t *buf;
457.     buf = av_malloc(width);
         ^
458. 
459.     src_m1 = src1;

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

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

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

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

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

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

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