ffmpeg.c:501: error: Uninitialized Value
  The value read from best was never initialized.

ffmpeg.c:501:9: 
499.             }
500.         }
501.         st->codec->sample_rate= best;
             ^
502.     }
503. }
