libswscale/swscale.c:3067: error: Null Dereference
  pointer `filter` last assigned on line 3061 could be null and is dereferenced at line 3067, column 9.

libswscale/swscale.c:3056:1: start of procedure sws_getDefaultFilter()
3054. #endif
3055. 
3056. SwsFilter *sws_getDefaultFilter(float lumaGBlur, float chromaGBlur,
      ^
3057.                                 float lumaSharpen, float chromaSharpen,
3058.                                 float chromaHShift, float chromaVShift,

libswscale/swscale.c:3061:5: 
3059.                                 int verbose)
3060. {
3061.     SwsFilter *filter= av_malloc(sizeof(SwsFilter));
          ^
3062. 
3063.     if (lumaGBlur!=0.0){

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 false branch
  53. 
  54.     /* let's disallow possible ambiguous cases */
  55.     if(size > (INT_MAX-16) )
             ^
  56.         return NULL;
  57. 

libavutil/mem.c:66:9: Taking true branch
  64.     ((char*)ptr)[-1]= diff;
  65. #elif HAVE_POSIX_MEMALIGN
  66.     if (posix_memalign(&ptr,16,size))
              ^
  67.         ptr = NULL;
  68. #elif HAVE_MEMALIGN

libavutil/mem.c:67:9: 
  65. #elif HAVE_POSIX_MEMALIGN
  66.     if (posix_memalign(&ptr,16,size))
  67.         ptr = NULL;
              ^
  68. #elif HAVE_MEMALIGN
  69.     ptr = memalign(16,size);

libavutil/mem.c:99:5: 
   97.     ptr = malloc(size);
   98. #endif
   99.     return ptr;
           ^
  100. }
  101. 

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)

libswscale/swscale.c:3063:9: Taking false branch
3061.     SwsFilter *filter= av_malloc(sizeof(SwsFilter));
3062. 
3063.     if (lumaGBlur!=0.0){
              ^
3064.         filter->lumH= sws_getGaussianVec(lumaGBlur, 3.0);
3065.         filter->lumV= sws_getGaussianVec(lumaGBlur, 3.0);

libswscale/swscale.c:3067:9: 
3065.         filter->lumV= sws_getGaussianVec(lumaGBlur, 3.0);
3066.     }else{
3067.         filter->lumH= sws_getIdentityVec();
              ^
3068.         filter->lumV= sws_getIdentityVec();
3069.     }

libswscale/swscale.c:3150:1: start of procedure sws_getIdentityVec()
  3148. 
  3149. 
  3150. SwsVector *sws_getIdentityVec(void){
        ^
  3151.     return sws_getConstVec(1.0, 1);
  3152. }

libswscale/swscale.c:3151:5: Skipping sws_getConstVec(): empty list of specs
  3149. 
  3150. SwsVector *sws_getIdentityVec(void){
  3151.     return sws_getConstVec(1.0, 1);
            ^
  3152. }
  3153. 

libswscale/swscale.c:3152:1: return from a call to sws_getIdentityVec
  3150. SwsVector *sws_getIdentityVec(void){
  3151.     return sws_getConstVec(1.0, 1);
  3152. }
        ^
  3153. 
  3154. double sws_dcVec(SwsVector *a){
