libavformat/flvenc.c:226: error: Uninitialized Value
  The value read from samplerate was never initialized.

libavformat/flvenc.c:226:9: 
224.     if(flv->hasAudio){
225.         put_amf_string(pb, "audiosamplerate");
226.         put_amf_double(pb, samplerate);
             ^
227. 
228.         put_amf_string(pb, "audiosamplesize");
