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

libavcodec/imgconvert.c:430:1: start of procedure deinterlace_bottom_field_inplace()
428. }
429. 
430. static void deinterlace_bottom_field_inplace(uint8_t *src1, int src_wrap,
     ^
431.                                              int width, int height)
432. {

libavcodec/imgconvert.c:436:5: 
434.     int y;
435.     uint8_t *buf;
436.     buf = av_malloc(width);
         ^
437. 
438.     src_m1 = src1;

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

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

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

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

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

libavcodec/imgconvert.c:438:5: 
436.     buf = av_malloc(width);
437. 
438.     src_m1 = src1;
         ^
439.     memcpy(buf,src_m1,width);
440.     src_0=&src_m1[src_wrap];

libavcodec/imgconvert.c:439:5: 
437. 
438.     src_m1 = src1;
439.     memcpy(buf,src_m1,width);
         ^
440.     src_0=&src_m1[src_wrap];
441.     src_p1=&src_0[src_wrap];
