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

libavcodec/imgconvert.c:1447:1: start of procedure deinterlace_bottom_field_inplace()
1445. }
1446. 
1447. static void deinterlace_bottom_field_inplace(uint8_t *src1, int src_wrap,
      ^
1448.                                              int width, int height)
1449. {

libavcodec/imgconvert.c:1453:5: 
1451.     int y;
1452.     uint8_t *buf;
1453.     buf = (uint8_t*)av_malloc(width);
          ^
1454. 
1455.     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:1455:5: 
1453.     buf = (uint8_t*)av_malloc(width);
1454. 
1455.     src_m1 = src1;
          ^
1456.     memcpy(buf,src_m1,width);
1457.     src_0=&src_m1[src_wrap];

libavcodec/imgconvert.c:1456:5: 
1454. 
1455.     src_m1 = src1;
1456.     memcpy(buf,src_m1,width);
          ^
1457.     src_0=&src_m1[src_wrap];
1458.     src_p1=&src_0[src_wrap];
