gstav: Use libavcodec util function for version check