title: Error: avcodec_init();
body: <p>I'll try to compile under Ubuntu 14.04.2 and I get the following error:</p>
  
  <pre><code>VideoPlayerPipHd.c: In static member function ‘static void reel::VideoPlayerPipHd::Create()’:
  VideoPlayerPipHd.c:792:6: error: ‘avcodec_init’ was not declared in this scope
        avcodec_init -&gt; avcodec_register_all;
        ^
  VideoPlayerPipHd.c:793:7: error: ‘av_open_input_file’ was not declared in this scope
     av_open_input_file -&gt; avformat_open_input;
     ^
  </code></pre>
  
  <p>The code is:</p>
  
  <pre><code>787     void VideoPlayerPipHd::Create()
  788     {
  789         if (!instance_)
  790         {
  791             instance_ = new VideoPlayerPipHd;
  792             avcodec_init();
  793             avcodec_register_all();
  794         }
  795     }
  </code></pre>
  
  <p>I tried several things but I am stuck. Could somebody help me please?
  Thanks in advance</p>