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

libavcodec/imgconvert.c:2824:1: start of procedure deinterlace_bottom_field_inplace()
2822. }
2823. 
2824. static void deinterlace_bottom_field_inplace(uint8_t *src1, int src_wrap,
      ^
2825.                                              int width, int height)
2826. {

libavcodec/imgconvert.c:2830:5: 
2828.     int y;
2829.     uint8_t *buf;
2830.     buf = (uint8_t*)av_malloc(width);
          ^
2831. 
2832.     src_m1 = src1;

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

libavutil/mem.c:45:5: 
  43. void *av_malloc(unsigned int size)
  44. {
  45.     void *ptr = NULL;
          ^
  46. #ifdef CONFIG_MEMALIGN_HACK
  47.     long diff;

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

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

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

libavcodec/imgconvert.c:2832:5: 
2830.     buf = (uint8_t*)av_malloc(width);
2831. 
2832.     src_m1 = src1;
          ^
2833.     memcpy(buf,src_m1,width);
2834.     src_0=&src_m1[src_wrap];

libavcodec/imgconvert.c:2833:5: 
2831. 
2832.     src_m1 = src1;
2833.     memcpy(buf,src_m1,width);
          ^
2834.     src_0=&src_m1[src_wrap];
2835.     src_p1=&src_0[src_wrap];
