libavfilter/vf_yadif.c:259: error: Null Dereference
  pointer `frame` last assigned on line 257 could be null and is dereferenced at line 259, column 5.

libavfilter/vf_yadif.c:250:1: start of procedure get_video_buffer()
248. }
249. 
250. static AVFrame *get_video_buffer(AVFilterLink *link, int w, int h)
     ^
251. {
252.     AVFrame *frame;

libavfilter/vf_yadif.c:253:5: 
251. {
252.     AVFrame *frame;
253.     int width  = FFALIGN(w, 32);
         ^
254.     int height = FFALIGN(h + 2, 32);
255.     int i;

libavfilter/vf_yadif.c:254:5: 
252.     AVFrame *frame;
253.     int width  = FFALIGN(w, 32);
254.     int height = FFALIGN(h + 2, 32);
         ^
255.     int i;
256. 

libavfilter/vf_yadif.c:257:5: 
255.     int i;
256. 
257.     frame = ff_default_get_video_buffer(link, width, height);
         ^
258. 
259.     frame->width  = w;

libavfilter/video.c:38:1: start of procedure ff_default_get_video_buffer()
  36.  * filter chain.  This will allow for a buffer pool instead of the constant
  37.  * alloc & free cycle currently implemented. */
  38. AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h)
      ^
  39. {
  40.     AVFrame *frame = av_frame_alloc();

libavfilter/video.c:40:5: Skipping av_frame_alloc(): empty list of specs
  38. AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h)
  39. {
  40.     AVFrame *frame = av_frame_alloc();
          ^
  41.     int ret;
  42. 

libavfilter/video.c:43:10: Taking true branch
  41.     int ret;
  42. 
  43.     if (!frame)
               ^
  44.         return NULL;
  45. 

libavfilter/video.c:44:9: 
  42. 
  43.     if (!frame)
  44.         return NULL;
              ^
  45. 
  46.     frame->width  = w;

libavfilter/video.c:55:1: return from a call to ff_default_get_video_buffer
  53. 
  54.     return frame;
  55. }
      ^
  56. 
  57. AVFrame *ff_get_video_buffer(AVFilterLink *link, int w, int h)

libavfilter/vf_yadif.c:259:5: 
257.     frame = ff_default_get_video_buffer(link, width, height);
258. 
259.     frame->width  = w;
         ^
260.     frame->height = h;
261. 

static AVFrame *get_video_buffer(AVFilterLink *link, int w, int h)
{
    AVFrame *frame;
    int width  = FFALIGN(w, 32);
    int height = FFALIGN(h + 2, 32);
    int i;
    frame = ff_default_get_video_buffer(link, width, height);
    frame->width  = w;
    frame->height = h;
    for (i = 0; i < 3; i++)
        frame->data[i] += frame->linesize[i];
    return frame;
}
['static AVFrame *get_video_buffer(AVFilterLink *link, int w, int h)\n{\n    AVFrame *frame;\n    int width  = FFALIGN(w, 32);\n    int height = FFALIGN(h + 2, 32);\n    int i;\n    frame = ff_default_get_video_buffer(link, width, height);\n    frame->width  = w;\n    frame->height = h;\n    for (i = 0; i < 3; i++)\n        frame->data[i] += frame->linesize[i];\n    return frame;\n}', 'AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h)\n{\n    AVFrame *frame = av_frame_alloc();\n    int ret;\n    if (!frame)\n        return NULL;\n    frame->width  = w;\n    frame->height = h;\n    frame->format = link->format;\n    ret = av_frame_get_buffer(frame, 32);\n    if (ret < 0)\n        av_frame_free(&frame);\n    return frame;\n}']