title: swscaler warning : deprecated pixel format used
body: <p>I want to perform a color space conversion of my video frame before converting it to an opengl texture with the following code:</p>
  
  <pre><code>struct SwsContext * pSwsCtx = sws_getCachedContext(NULL,width, height, codec-&gt;pix_fmt, width, height, AV_PIX_FMT_RGBA, SWS_POINT, NULL, NULL, NULL);
  </code></pre>
  
  <p>Each time the <em>sws_getCachedContext()</em> function is called I got the following warning:</p>
  
  <pre><code>[swscaler @ 0x10506fa00] deprecated pixel format used, make sure you did set range correctly
  </code></pre>
  
  <p>Here is my <em>ffmpeg</em> output for version information:</p>
  
  <pre><code>ffmpeg version 2.2 Copyright (c) 2000-2014 the FFmpeg developers
    built on Mar 26 2014 15:29:01 with Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
    configuration: --prefix=/usr/local/Cellar/ffmpeg/2.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
    libavutil      52. 66.100 / 52. 66.100
    libavcodec     55. 52.102 / 55. 52.102
    libavformat    55. 33.100 / 55. 33.100
    libavdevice    55. 10.100 / 55. 10.100
    libavfilter     4.  2.100 /  4.  2.100
    libavresample   1.  2.  0 /  1.  2.  0
    libswscale      2.  5.102 /  2.  5.102
    libswresample   0. 18.100 /  0. 18.100
    libpostproc    52.  3.100 / 52.  3.100
  Hyper fast Audio and Video encoder
  </code></pre>
  
  <p>Any idea to disable this warning? How to set the color range correctly?</p>