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

libavcodec/imgconvert.c:2830:1: start of procedure deinterlace_bottom_field_inplace()
2828. }
2829. 
2830. static void deinterlace_bottom_field_inplace(uint8_t *src1, int src_wrap,
      ^
2831.                                              int width, int height)
2832. {

libavcodec/imgconvert.c:2836:5: 
2834.     int y;
2835.     uint8_t *buf;
2836.     buf = (uint8_t*)av_malloc(width);
          ^
2837. 
2838.     src_m1 = src1;

libavutil/mem.c:42:1: start of procedure av_malloc()
  40.    linker will do it automatically */
  41. 
  42. void *av_malloc(unsigned int size)
      ^
  43. {
  44.     void *ptr;

libavutil/mem.c:50:8: Taking true branch
  48. 
  49.     /* let's disallow possible ambiguous cases */
  50.     if(size > (INT_MAX-16) )
             ^
  51.         return NULL;
  52. 

libavutil/mem.c:51:9: 
  49.     /* let's disallow possible ambiguous cases */
  50.     if(size > (INT_MAX-16) )
  51.         return NULL;
              ^
  52. 
  53. #ifdef CONFIG_MEMALIGN_HACK

libavutil/mem.c:92:1: return from a call to av_malloc
  90. #endif
  91.     return ptr;
  92. }
      ^
  93. 
  94. void *av_realloc(void *ptr, unsigned int size)

libavcodec/imgconvert.c:2838:5: 
2836.     buf = (uint8_t*)av_malloc(width);
2837. 
2838.     src_m1 = src1;
          ^
2839.     memcpy(buf,src_m1,width);
2840.     src_0=&src_m1[src_wrap];

libavcodec/imgconvert.c:2839:5: 
2837. 
2838.     src_m1 = src1;
2839.     memcpy(buf,src_m1,width);
          ^
2840.     src_0=&src_m1[src_wrap];
2841.     src_p1=&src_0[src_wrap];
