Was this problem ever resolved? I am trying to make use of this library and am getting the same problem. My avcodec_open(c, codec) function returns -22. Feedback would be much appreciated. -Casey