title: ffmpeg: Considers AVPixelFormat as Int?
body: <p>I would like to use a function <code>ff_load_image</code>.</p>
  
  <p><strong>program.c</strong></p>
  
  <pre><code>#include "../ffmpeg/libavfilter/lavfutils.h"
  
  int main ()
  {
    uint8_t* data;
  
    int linesize, width, height, log_ctx;
  
    int i = ff_load_image(&amp;data, &amp;linesize, &amp;width, &amp;height, AV_PIX_FMT_RGB24, "blue.jpg", &amp;log_ctx);
  }
  </code></pre>
  
  <p>This compiles, but gives a warning. </p>
  
  <pre><code>program.c: In function 'main':
  program.c:11: warning: passing argument 5 of 'ff_load_image' makes pointer from integer without a cast
  ../ffmpeg/libavfilter/lavfutils.h:39: note: expected 'enum AVPixelFormat *' but argument is of type 'int'
  </code></pre>
  
  <p>When I run the program, it segment faults. I can't think of any other way to specify a pixel format. Why would ffmpeg think <code>AV_PIX_FMT_RGB8</code> is an integer? It's obviously an <code>AVPixelFormat</code>.</p>