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

libavcodec/imgconvert.c:1456:1: start of procedure deinterlace_bottom_field_inplace()
1454. }
1455. 
1456. static void deinterlace_bottom_field_inplace(uint8_t *src1, int src_wrap,
      ^
1457.                                              int width, int height)
1458. {

libavcodec/imgconvert.c:1462:5: 
1460.     int y;
1461.     uint8_t *buf;
1462.     buf = (uint8_t*)av_malloc(width);
          ^
1463. 
1464.     src_m1 = src1;

libavutil/mem.c:47:1: start of procedure av_malloc()
  45.    linker will do it automatically. */
  46. 
  47. void *av_malloc(unsigned int size)
      ^
  48. {
  49.     void *ptr = NULL;

libavutil/mem.c:49:5: 
  47. void *av_malloc(unsigned int size)
  48. {
  49.     void *ptr = NULL;
          ^
  50. #if CONFIG_MEMALIGN_HACK
  51.     long diff;

libavutil/mem.c:55:8: Taking true branch
  53. 
  54.     /* let's disallow possible ambiguous cases */
  55.     if(size > (INT_MAX-16) )
             ^
  56.         return NULL;
  57. 

libavutil/mem.c:56:9: 
  54.     /* let's disallow possible ambiguous cases */
  55.     if(size > (INT_MAX-16) )
  56.         return NULL;
              ^
  57. 
  58. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:100:1: return from a call to av_malloc
   98. #endif
   99.     return ptr;
  100. }
       ^
  101. 
  102. void *av_realloc(void *ptr, unsigned int size)

libavcodec/imgconvert.c:1464:5: 
1462.     buf = (uint8_t*)av_malloc(width);
1463. 
1464.     src_m1 = src1;
          ^
1465.     memcpy(buf,src_m1,width);
1466.     src_0=&src_m1[src_wrap];

libavcodec/imgconvert.c:1465:5: 
1463. 
1464.     src_m1 = src1;
1465.     memcpy(buf,src_m1,width);
          ^
1466.     src_0=&src_m1[src_wrap];
1467.     src_p1=&src_0[src_wrap];
